Struct minidump::MinidumpMemoryBase
source · [−]pub struct MinidumpMemoryBase<'a, Descriptor> {
pub desc: Descriptor,
pub base_address: u64,
pub size: u64,
pub bytes: &'a [u8],
}
Expand description
A region of memory from the process that wrote the minidump. This is the underlying generic type for MinidumpMemory and MinidumpMemory64.
Fields
desc: Descriptor
The raw MINIDUMP_MEMORY_DESCRIPTOR
from the minidump.
base_address: u64
The starting address of this range of memory.
size: u64
The length of this range of memory.
bytes: &'a [u8]
The contents of the memory.
Implementations
sourceimpl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
impl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
sourceimpl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR64>
impl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR64>
sourceimpl<'a, Descriptor> MinidumpMemoryBase<'a, Descriptor>
impl<'a, Descriptor> MinidumpMemoryBase<'a, Descriptor>
sourcepub fn get_memory_at_address<T>(&self, addr: u64) -> Option<T> where
T: TryFromCtx<'a, Endian, [u8], Error = Error>,
T: SizeWith<Endian>,
pub fn get_memory_at_address<T>(&self, addr: u64) -> Option<T> where
T: TryFromCtx<'a, Endian, [u8], Error = Error>,
T: SizeWith<Endian>,
Get mem::size_of::<T>()
bytes of memory at addr
from this region.
Return None
if the requested address range falls out of the bounds
of this memory region.
sourcepub fn print_contents<T: Write>(&self, f: &mut T) -> Result<()>
pub fn print_contents<T: Write>(&self, f: &mut T) -> Result<()>
Write the contents of this MinidumpMemory
to f
as a hex string.
pub fn memory_range(&self) -> Option<Range<u64>>
Trait Implementations
sourceimpl<'a, Descriptor: Clone> Clone for MinidumpMemoryBase<'a, Descriptor>
impl<'a, Descriptor: Clone> Clone for MinidumpMemoryBase<'a, Descriptor>
sourcefn clone(&self) -> MinidumpMemoryBase<'a, Descriptor>
fn clone(&self) -> MinidumpMemoryBase<'a, Descriptor>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<'a, Descriptor> RefUnwindSafe for MinidumpMemoryBase<'a, Descriptor> where
Descriptor: RefUnwindSafe,
impl<'a, Descriptor> Send for MinidumpMemoryBase<'a, Descriptor> where
Descriptor: Send,
impl<'a, Descriptor> Sync for MinidumpMemoryBase<'a, Descriptor> where
Descriptor: Sync,
impl<'a, Descriptor> Unpin for MinidumpMemoryBase<'a, Descriptor> where
Descriptor: Unpin,
impl<'a, Descriptor> UnwindSafe for MinidumpMemoryBase<'a, Descriptor> where
Descriptor: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more