pub struct Euv3dPackageView<'a> { /* private fields */ }Expand description
Zero-copy validated view over a 64-byte-aligned .euv3d binary buffer.
Implementations§
Source§impl<'a> Euv3dPackageView<'a>
Zero-copy header validation and 64-byte-aligned section slice lookup for Euv3dPackageView.
impl<'a> Euv3dPackageView<'a>
Zero-copy header validation and 64-byte-aligned section slice lookup for Euv3dPackageView.
Sourcepub fn from_bytes(bytes: &'a [u8]) -> Result<Self, String>
pub fn from_bytes(bytes: &'a [u8]) -> Result<Self, String>
Sourcepub fn section_entry(&self, kind: Euv3dSectionKind) -> Option<Euv3dSectionEntry>
pub fn section_entry(&self, kind: Euv3dSectionKind) -> Option<Euv3dSectionEntry>
Sourcepub fn section_bytes(&self, kind: Euv3dSectionKind) -> Option<&'a [u8]>
pub fn section_bytes(&self, kind: Euv3dSectionKind) -> Option<&'a [u8]>
Source§impl<'a> Euv3dPackageView<'a>
impl<'a> Euv3dPackageView<'a>
pub fn get_raw_bytes(&self) -> &&'a [u8] ⓘ
pub fn get_mut_raw_bytes(&mut self) -> &mut &'a [u8] ⓘ
pub fn set_raw_bytes(&mut self, val: &'a [u8]) -> &mut Self
pub fn get_header(&self) -> Euv3dHeader
pub fn get_mut_header(&mut self) -> &mut Euv3dHeader
pub fn set_header(&mut self, val: Euv3dHeader) -> &mut Self
pub fn get_sections(&self) -> &Vec<Euv3dSectionEntry>
pub fn get_mut_sections(&mut self) -> &mut Vec<Euv3dSectionEntry>
pub fn set_sections(&mut self, val: Vec<Euv3dSectionEntry>) -> &mut Self
Trait Implementations§
Source§impl<'a> Clone for Euv3dPackageView<'a>
impl<'a> Clone for Euv3dPackageView<'a>
Auto Trait Implementations§
impl<'a> Forget for Euv3dPackageView<'a>
impl<'a> Freeze for Euv3dPackageView<'a>
impl<'a> Move for Euv3dPackageView<'a>
impl<'a> RefUnwindSafe for Euv3dPackageView<'a>
impl<'a> Send for Euv3dPackageView<'a>
impl<'a> Sync for Euv3dPackageView<'a>where
RawVecInner: Sync,
impl<'a> Unpin for Euv3dPackageView<'a>
impl<'a> UnsafeUnpin for Euv3dPackageView<'a>where
&'a [u8]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Euv3dSectionEntry>: UnsafeUnpin,
impl<'a> UnwindSafe for Euv3dPackageView<'a>
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