pub struct EncodingHeader {
pub version: u8,
pub hash_size_ckey: u8,
pub hash_size_ekey: u8,
pub ce_page_size_kb: u16,
pub espec_page_size_kb: u16,
pub ce_page_count: u32,
pub espec_page_count: u32,
pub espec_block_size: u32,
}Expand description
Header of the encoding file (0x16 bytes, big-endian).
Fields§
§version: u8Format version (must be 1).
hash_size_ckey: u8Byte length of content key hashes (typically 16).
hash_size_ekey: u8Byte length of encoding key hashes (typically 16).
ce_page_size_kb: u16CE page size in KiB (each CE data page is this value * 1024 bytes).
espec_page_size_kb: u16ESpec page size in KiB.
ce_page_count: u32Number of CKey-to-EKey data pages.
espec_page_count: u32Number of ESpec pages.
espec_block_size: u32Total byte size of the ESpec string block.
Trait Implementations§
Source§impl Clone for EncodingHeader
impl Clone for EncodingHeader
Source§fn clone(&self) -> EncodingHeader
fn clone(&self) -> EncodingHeader
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 moreAuto Trait Implementations§
impl Freeze for EncodingHeader
impl RefUnwindSafe for EncodingHeader
impl Send for EncodingHeader
impl Sync for EncodingHeader
impl Unpin for EncodingHeader
impl UnsafeUnpin for EncodingHeader
impl UnwindSafe for EncodingHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more