#[repr(C)]pub struct BomBlockTree {
pub tree: [u8; 4],
pub version: u32,
pub block_paths_index: u32,
pub block_size: u32,
pub path_count: u32,
pub a: u8,
}Expand description
Block type for various variables describing a collection/tree of paths.
Fields§
§tree: [u8; 4]Always tree.
version: u32Version of this data structure.
block_paths_index: u32Block index of BomBlockPaths describing paths.
block_size: u32Block size. Always appears to be 4096.
path_count: u32Number of paths tracked by this tree.
a: u8Unknown.
Implementations§
Source§impl BomBlockTree
impl BomBlockTree
Sourcepub fn paths(&self, bom: &ParsedBom<'_>) -> Result<BomBlockPaths, Error>
pub fn paths(&self, bom: &ParsedBom<'_>) -> Result<BomBlockPaths, Error>
Resolve the BomBlockPaths this instance points to.
Sourcepub fn root_paths(&self, bom: &ParsedBom<'_>) -> Result<BomBlockPaths, Error>
pub fn root_paths(&self, bom: &ParsedBom<'_>) -> Result<BomBlockPaths, Error>
Resolve the BomBlockPaths that is the root of the tree.
Trait Implementations§
Source§impl Clone for BomBlockTree
impl Clone for BomBlockTree
Source§fn clone(&self) -> BomBlockTree
fn clone(&self) -> BomBlockTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BomBlockTree
impl Debug for BomBlockTree
Source§impl Default for BomBlockTree
impl Default for BomBlockTree
Source§impl<'a> IntoCtx<Endian> for &'a BomBlockTree
impl<'a> IntoCtx<Endian> for &'a BomBlockTree
Source§impl<'a> TryFromCtx<'a, Endian> for BomBlockTree
impl<'a> TryFromCtx<'a, Endian> for BomBlockTree
Source§impl<'a> TryIntoCtx<Endian> for &'a BomBlockTree
impl<'a> TryIntoCtx<Endian> for &'a BomBlockTree
Source§impl TryIntoCtx<Endian> for BomBlockTree
impl TryIntoCtx<Endian> for BomBlockTree
impl Copy for BomBlockTree
Auto Trait Implementations§
impl Freeze for BomBlockTree
impl RefUnwindSafe for BomBlockTree
impl Send for BomBlockTree
impl Sync for BomBlockTree
impl Unpin for BomBlockTree
impl UnwindSafe for BomBlockTree
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