Skip to main content

Euv3dPackageView

Struct Euv3dPackageView 

Source
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.

Source

pub fn from_bytes(bytes: &'a [u8]) -> Result<Self, String>

Parses and CRC-verifies an .euv3d byte buffer with zero payload copies.

§Arguments
  • &'a [u8] - Raw .euv3d binary bytes.
§Returns
  • Result<Self, String> - Validated zero-copy view or integrity error.
Source

pub fn section_entry(&self, kind: Euv3dSectionKind) -> Option<Euv3dSectionEntry>

Looks up the directory descriptor for kind.

§Arguments
  • &Self - Validated .euv3d view.
  • Euv3dSectionKind - Target section identifier.
§Returns
  • Option<Euv3dSectionEntry> - Matching directory entry if present.
Source

pub fn section_bytes(&self, kind: Euv3dSectionKind) -> Option<&'a [u8]>

Returns a zero-copy 64-byte-aligned byte slice for kind.

§Arguments
  • &Self - Validated .euv3d view.
  • Euv3dSectionKind - Target section identifier.
§Returns
  • Option<&'a [u8]> - Direct borrowed slice into the backing .euv3d buffer.
Source§

impl<'a> Euv3dPackageView<'a>

Implements impl #impl_generics #name #ty_generics #where_clause.

Source

pub fn get_raw_bytes(&self) -> &&'a [u8] ⓘ

Source

pub fn get_mut_raw_bytes(&mut self) -> &mut &'a [u8] ⓘ

Source

pub fn set_raw_bytes(&mut self, val: &'a [u8]) -> &mut Self

Source

pub fn get_header(&self) -> Euv3dHeader

Source

pub fn get_mut_header(&mut self) -> &mut Euv3dHeader

Source

pub fn set_header(&mut self, val: Euv3dHeader) -> &mut Self

Source

pub fn get_sections(&self) -> &Vec<Euv3dSectionEntry>

Source

pub fn get_mut_sections(&mut self) -> &mut Vec<Euv3dSectionEntry>

Source

pub fn set_sections(&mut self, val: Vec<Euv3dSectionEntry>) -> &mut Self

Trait Implementations§

Source§

impl<'a> Clone for Euv3dPackageView<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for Euv3dPackageView<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>
where &'a [u8]: Send, RawVecInner: Send,

§

impl<'a> Sync for Euv3dPackageView<'a>
where RawVecInner: Sync,

§

impl<'a> Unpin for Euv3dPackageView<'a>
where &'a [u8]: Unpin, *const u8 is !null: Unpin,

§

impl<'a> UnsafeUnpin for Euv3dPackageView<'a>

§

impl<'a> UnwindSafe for Euv3dPackageView<'a>
where &'a [u8]: UnwindSafe, RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.