expose len_cached and len_compressed methods on the CompressibleChunkStorage
@@ -42,17 +42,9 @@ impl<N, Compr> CompressibleChunkStorage<N, Compr>
where
Compr: Compression,
{
- pub fn cache(&self) -> &SmallKeyLruCache<PointN<N>, Compr::Data, CompressedLocation> {
- &self.cache
- }
-
pub fn compression(&self) -> &Compr {
&self.compression
}
-
- pub fn compressed(&self) -> &CompressedChunks<Compr> {
- &self.compressed
- }
}
impl<N, Compr> CompressibleChunkStorage<N, Compr>
@@ -68,6 +60,14 @@ where
}
}
+ pub fn len_cached(&self) -> usize {
+ self.cache.len_cached()
+ }
+
+ pub fn len_compressed(&self) -> usize {
+ self.cache.len_cached()
+ }
+
/// Returns a reader that implements `ChunkReadStorage`.
pub fn reader<'a>(
&'a self,
