pub struct WbinFile<'a> {
pub header: WbinHeader,
pub kernels: Vec<KernelInfo>,
/* private fields */
}Fields§
§header: WbinHeader§kernels: Vec<KernelInfo>Implementations§
Source§impl<'a> WbinFile<'a>
impl<'a> WbinFile<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, WbinError>
pub fn parse(data: &'a [u8]) -> Result<Self, WbinError>
§Errors
Returns WbinError if the binary is malformed or too small.
pub fn code(&self) -> &[u8] ⓘ
pub fn kernel_code(&self, kernel_index: usize) -> Option<&[u8]>
pub fn find_kernel(&self, name: &str) -> Option<&KernelInfo>
pub fn has_symbols(&self) -> bool
pub fn kernel_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WbinFile<'a>
impl<'a> RefUnwindSafe for WbinFile<'a>
impl<'a> Send for WbinFile<'a>
impl<'a> Sync for WbinFile<'a>
impl<'a> Unpin for WbinFile<'a>
impl<'a> UnsafeUnpin for WbinFile<'a>
impl<'a> UnwindSafe for WbinFile<'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