pub struct GlobalHeapCollection {
pub collection_size: u64,
pub objects: Vec<GlobalHeapObject>,
}Expand description
A parsed global heap collection.
Fields§
§collection_size: u64Total size of this collection including header.
objects: Vec<GlobalHeapObject>Objects within this collection.
Implementations§
Source§impl GlobalHeapCollection
impl GlobalHeapCollection
Sourcepub fn parse(
file_data: &[u8],
offset: usize,
length_size: u8,
) -> Result<GlobalHeapCollection, FormatError>
pub fn parse( file_data: &[u8], offset: usize, length_size: u8, ) -> Result<GlobalHeapCollection, FormatError>
Parse a global heap collection at the given offset in the file data.
Sourcepub fn get_object(&self, index: u16) -> Option<&GlobalHeapObject>
pub fn get_object(&self, index: u16) -> Option<&GlobalHeapObject>
Get an object by its index.
Trait Implementations§
Source§impl Clone for GlobalHeapCollection
impl Clone for GlobalHeapCollection
Source§fn clone(&self) -> GlobalHeapCollection
fn clone(&self) -> GlobalHeapCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GlobalHeapCollection
impl RefUnwindSafe for GlobalHeapCollection
impl Send for GlobalHeapCollection
impl Sync for GlobalHeapCollection
impl Unpin for GlobalHeapCollection
impl UnsafeUnpin for GlobalHeapCollection
impl UnwindSafe for GlobalHeapCollection
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