add getter for root of snapshot
This commit is contained in:
parent
fd6883f28e
commit
6070c7bca3
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user