Skip to content

Commit 4aea170

Browse files
authored
Feature: makes the decompressor and compressor methods public (#5752)
Completes: #5709 (reply in thread) Signed-off-by: Connor Tsui <[email protected]>
1 parent f5ee1a0 commit 4aea170

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

encodings/fsst/src/array.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,12 @@ impl FSSTArray {
319319
/// this array.
320320
///
321321
/// This is private to the crate to avoid leaking `fsst-rs` types as part of the public API.
322-
pub(crate) fn decompressor(&self) -> Decompressor<'_> {
322+
pub fn decompressor(&self) -> Decompressor<'_> {
323323
Decompressor::new(self.symbols().as_slice(), self.symbol_lengths().as_slice())
324324
}
325325

326-
pub(crate) fn compressor(&self) -> &Compressor {
326+
/// Retrieves the FSST compressor.
327+
pub fn compressor(&self) -> &Compressor {
327328
self.compressor.as_ref()
328329
}
329330
}

0 commit comments

Comments
 (0)