Struct crowdstrike_cloudproto::services::lfo::LfoFileHeader
source · [−]pub struct LfoFileHeader {
pub magic: u32,
pub unk_cst1: u16,
pub comp_format: u16,
pub payload_size: u32,
pub data_hash: [u8; 32],
pub cur_payload_size: u32,
pub cur_state: u16,
pub unk: u16,
}Expand description
Reproduces the internal format of the LFO file headers, as used by the official client If you just care about downloading a file, you probably don’t need to look at this struct.
Fields
magic: u32Constant value (“RHDL”)
unk_cst1: u16Unclear, I have only seen the constant value 1 passed around
comp_format: u16See CompressionFormats for known values
payload_size: u32The size of the requested file data, after any decompression
data_hash: [u8; 32]Sha256 hash of the final data, without LFO header and after any decompression
cur_payload_size: u32In the official client, this field gets updated as it receives more data. You should ignore this field.
cur_state: u16In the official client, this starts at 1, goes up to 5 as we continue downloading. Ignore this field.
unk: u16This field is physically present in LFO headers, but its purpose has not been documented.
Trait Implementations
sourceimpl Clone for LfoFileHeader
impl Clone for LfoFileHeader
sourcefn clone(&self) -> LfoFileHeader
fn clone(&self) -> LfoFileHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LfoFileHeader
impl Debug for LfoFileHeader
sourceimpl PartialEq<LfoFileHeader> for LfoFileHeader
impl PartialEq<LfoFileHeader> for LfoFileHeader
sourcefn eq(&self, other: &LfoFileHeader) -> bool
fn eq(&self, other: &LfoFileHeader) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl TryFrom<&[u8]> for LfoFileHeader
impl TryFrom<&[u8]> for LfoFileHeader
impl Copy for LfoFileHeader
impl Eq for LfoFileHeader
impl StructuralEq for LfoFileHeader
impl StructuralPartialEq for LfoFileHeader
Auto Trait Implementations
impl RefUnwindSafe for LfoFileHeader
impl Send for LfoFileHeader
impl Sync for LfoFileHeader
impl Unpin for LfoFileHeader
impl UnwindSafe for LfoFileHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more