Modern Apps git

← Modern-Apps.git

library:map: let a mamaps reader be reached after the header is known

Commit
1f993f4aea7e5b1dbb51d4f4424762ff3f01f5d6
Author
vayun-mathur <[email protected]>
When
2026-08-28 00:47 UTC (3 months ago)
Parents
a344368

Diff

library/tilecodec/src/main/rust/src/mamaps/read.rs
diff --git a/library/tilecodec/src/main/rust/src/mamaps/read.rs b/library/tilecodec/src/main/rust/src/mamaps/read.rsindex 725ae94a21..8b4a8fe934 100644--- a/library/tilecodec/src/main/rust/src/mamaps/read.rs+++ b/library/tilecodec/src/main/rust/src/mamaps/read.rs@@ -44,6 +44,13 @@ pub struct MamapsArchive<R: RangeReader> { }  impl<R: RangeReader> MamapsArchive<R> {+    /// The reader this archive was opened on.+    ///+    /// So a caller can act on something it only learns from the header — the `build_id`, which+    /// decides whether the reader's disk cache is still addressing this build.+    pub fn reader(&self) -> &R {+        &self.reader+    }     /// One range request: the header, the dictionary and the root index all live in the prefix.     ///     /// A file whose prefix does not hold all three is refused rather than fetched again. The