[][src]Struct evtx::EvtxChunkData

pub struct EvtxChunkData {
    pub header: EvtxChunkHeader,
    pub data: Vec<u8>,
}

A struct which owns all the data associated with a chunk. See EvtxChunk for more.

Fields

header: EvtxChunkHeaderdata: Vec<u8>

Methods

impl EvtxChunkData[src]

pub fn new(data: Vec<u8>, validate_checksum: bool) -> Result<Self>[src]

Construct a new chunk from the given data. Note that even when validate_checksum is set to false, the header magic is still checked.

pub fn parse<'chunk, 'b: 'chunk>(
    &'chunk mut self,
    settings: &'b ParserSettings
) -> Result<EvtxChunk<'chunk>>
[src]

Require that the settings live at least as long as &self.

pub fn validate_data_checksum(&self) -> bool[src]

pub fn validate_header_checksum(&self) -> bool[src]

pub fn validate_checksum(&self) -> bool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]