pub struct EvtxChunkData {
pub header: EvtxChunkHeader,
pub data: Vec<u8>,
}Expand description
A struct which owns all the data associated with a chunk. See EvtxChunk for more.
Fields§
§header: EvtxChunkHeader§data: Vec<u8>Implementations§
Source§impl EvtxChunkData
impl EvtxChunkData
Sourcepub fn new(data: Vec<u8>, validate_checksum: bool) -> Result<Self, ChunkError>
pub fn new(data: Vec<u8>, validate_checksum: bool) -> Result<Self, ChunkError>
Construct a new chunk from the given data. Note that even when validate_checksum is set to false, the header magic is still checked.
Sourcepub fn parse(
&mut self,
settings: Arc<ParserSettings>,
) -> Result<EvtxChunk<'_>, ChunkError>
pub fn parse( &mut self, settings: Arc<ParserSettings>, ) -> Result<EvtxChunk<'_>, ChunkError>
Require that the settings live at least as long as &self.
Sourcepub fn parse_with_arena(
&mut self,
settings: Arc<ParserSettings>,
arena: Bump,
) -> Result<EvtxChunk<'_>, ChunkError>
pub fn parse_with_arena( &mut self, settings: Arc<ParserSettings>, arena: Bump, ) -> Result<EvtxChunk<'_>, ChunkError>
Parse a chunk while reusing an existing bump arena.
The arena is reset before use, retaining its capacity for reuse across chunks.
pub fn validate_data_checksum(&self) -> bool
pub fn validate_header_checksum(&self) -> bool
pub fn validate_checksum(&self) -> bool
Auto Trait Implementations§
impl Freeze for EvtxChunkData
impl RefUnwindSafe for EvtxChunkData
impl Send for EvtxChunkData
impl Sync for EvtxChunkData
impl Unpin for EvtxChunkData
impl UnwindSafe for EvtxChunkData
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> 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