pub struct HonzoParser<'buf> { /* private fields */ }Implementations§
Source§impl<'buf> HonzoParser<'buf>
impl<'buf> HonzoParser<'buf>
pub fn new(buf: &'buf [u8], reader_version: u16) -> Result<Self, HonzoError>
pub fn head(&self) -> &HonzoHead
pub fn toc_entries(&self) -> TocEntryIter<'buf> ⓘ
pub fn pmap_entries(&self) -> PmapEntryIter<'buf> ⓘ
pub fn chunk_bytes( &self, entry: &TocEntry<'_>, ) -> Result<&'buf [u8], HonzoError>
Sourcepub fn chunk_bytes_unchecked(
&self,
entry: &TocEntry<'_>,
) -> Result<&'buf [u8], HonzoError>
pub fn chunk_bytes_unchecked( &self, entry: &TocEntry<'_>, ) -> Result<&'buf [u8], HonzoError>
Read raw chunk bytes regardless of the encrypted flag. Upper layers (honzo-io) handle decryption when a key is provided.
pub fn meta_bytes(&self) -> Result<&'buf [u8], HonzoError>
pub fn extra_bytes(&self) -> Result<&'buf [u8], HonzoError>
pub fn find_chunk(&self, tag: &[u8; 4]) -> Option<TocEntry<'buf>>
pub fn find_chunk_by_id(&self, id: u32) -> Option<TocEntry<'buf>>
Trait Implementations§
Auto Trait Implementations§
impl<'buf> Freeze for HonzoParser<'buf>
impl<'buf> RefUnwindSafe for HonzoParser<'buf>
impl<'buf> Send for HonzoParser<'buf>
impl<'buf> Sync for HonzoParser<'buf>
impl<'buf> Unpin for HonzoParser<'buf>
impl<'buf> UnsafeUnpin for HonzoParser<'buf>
impl<'buf> UnwindSafe for HonzoParser<'buf>
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