Struct evtx::EvtxChunkData
source · 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.
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