pub struct Decoder<'elf> { /* private fields */ }
Expand description
Responsible for parsing logs from the elf.
Implementations§
Source§impl<'elf> Decoder<'elf>
impl<'elf> Decoder<'elf>
Sourcepub fn decode_log(&mut self, data: &[u8]) -> Result<Log<'elf>>
pub fn decode_log(&mut self, data: &[u8]) -> Result<Log<'elf>>
Decodes a raw log
Sourcepub fn precache_log_metadata(&mut self) -> Result<usize>
pub fn precache_log_metadata(&mut self) -> Result<usize>
Parses all logs in the elf and pre-caches their metadata and type information, to speed up future log decoding. This can also serve as a way to validate that all the logs encoded into the file are valid and can be properly parsed.
pub fn get_endianness(&self) -> RunTimeEndian
Auto Trait Implementations§
impl<'elf> Freeze for Decoder<'elf>
impl<'elf> RefUnwindSafe for Decoder<'elf>
impl<'elf> Send for Decoder<'elf>
impl<'elf> Sync for Decoder<'elf>
impl<'elf> Unpin for Decoder<'elf>
impl<'elf> UnwindSafe for Decoder<'elf>
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