Simplify encoder writing of dictionary

This commit is contained in:
A. Molzer committed 2025-07-13 02:22:17 +02:00
1 parent 54f733eaa3
commit 525bb2b9b1
2 files changed
+65 -37

No files matched your search

+4
View File
@@ -371,6 +371,10 @@ impl Entry {
self.count
}
pub(crate) fn offset(&self) -> &[u8] {
&self.offset
}
/// Returns a mem_reader for the offset/value field
fn r(&self, byte_order: ByteOrder) -> EndianReader<io::Cursor<Vec<u8>>> {
EndianReader::new(io::Cursor::new(self.offset.to_vec()), byte_order)