pub struct EncodedReadResult {
pub offset: u64,
pub unencoded_file_len: u64,
pub unencoded_len: u64,
pub unencoded_offset: u64,
pub compression: u32,
pub encryption: u32,
pub bytes_read: usize,
}Expand description
Metadata returned by encoded_read describing how the data is encoded.
Fields§
§offset: u64File offset of the extent.
unencoded_file_len: u64Length of the extent in the file (after decompression).
unencoded_len: u64Unencoded (decompressed) length of the data.
unencoded_offset: u64Offset within the unencoded data where the file content starts.
compression: u32Compression type (0 = none, 1 = zlib, 2 = lzo, 3 = zstd).
encryption: u32Encryption type (currently always 0).
bytes_read: usizeNumber of bytes actually read into the buffer.
Trait Implementations§
Source§impl Clone for EncodedReadResult
impl Clone for EncodedReadResult
Source§fn clone(&self) -> EncodedReadResult
fn clone(&self) -> EncodedReadResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedReadResult
impl Debug for EncodedReadResult
Source§impl PartialEq for EncodedReadResult
impl PartialEq for EncodedReadResult
impl Copy for EncodedReadResult
impl Eq for EncodedReadResult
impl StructuralPartialEq for EncodedReadResult
Auto Trait Implementations§
impl Freeze for EncodedReadResult
impl RefUnwindSafe for EncodedReadResult
impl Send for EncodedReadResult
impl Sync for EncodedReadResult
impl Unpin for EncodedReadResult
impl UnsafeUnpin for EncodedReadResult
impl UnwindSafe for EncodedReadResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more