pub struct EncodingFile {
pub header: EncodingHeader,
/* private fields */
}
Expand description
Encoding file parser and lookup
Fields§
§header: EncodingHeader
File header
Implementations§
Source§impl EncodingFile
impl EncodingFile
Sourcepub fn lookup_by_ckey(&self, ckey: &[u8]) -> Option<&EncodingEntry>
pub fn lookup_by_ckey(&self, ckey: &[u8]) -> Option<&EncodingEntry>
Look up encoding keys by content key
Sourcepub fn lookup_by_ekey(&self, ekey: &[u8]) -> Option<&Vec<u8>>
pub fn lookup_by_ekey(&self, ekey: &[u8]) -> Option<&Vec<u8>>
Look up content key by encoding key
Sourcepub fn get_ekey_for_ckey(&self, ckey: &[u8]) -> Option<&Vec<u8>>
pub fn get_ekey_for_ckey(&self, ckey: &[u8]) -> Option<&Vec<u8>>
Get the first encoding key for a content key (most common case)
Sourcepub fn get_file_size(&self, ckey: &[u8]) -> Option<u64>
pub fn get_file_size(&self, ckey: &[u8]) -> Option<u64>
Get file size for a content key
Sourcepub fn ckey_count(&self) -> usize
pub fn ckey_count(&self) -> usize
Get total number of content keys
Sourcepub fn ekey_count(&self) -> usize
pub fn ekey_count(&self) -> usize
Get total number of encoding keys
Auto Trait Implementations§
impl Freeze for EncodingFile
impl RefUnwindSafe for EncodingFile
impl Send for EncodingFile
impl Sync for EncodingFile
impl Unpin for EncodingFile
impl UnwindSafe for EncodingFile
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