add getter for root of snapshot

This commit is contained in:
soruh 2023-08-13 21:46:34 +02:00
parent fd6883f28e
commit 6070c7bca3

View File

@ -317,6 +317,10 @@ impl<R> Snapshot<R> {
fn read_raw(&self, range: FileRange) -> &[u8] {
&self.map[range.as_range()]
}
pub fn root(&self) -> FilePointer<R> {
self.root
}
}
pub struct Reader<R> {