Type Alias minidump::MinidumpMemory
source · pub type MinidumpMemory<'a> = MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>;
Expand description
A region of memory from the process that wrote the minidump.
Aliased Type§
struct MinidumpMemory<'a> {
pub desc: MINIDUMP_MEMORY_DESCRIPTOR,
pub base_address: u64,
pub size: u64,
pub bytes: &'a [u8],
pub endian: Endian,
}
Fields§
§desc: MINIDUMP_MEMORY_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.
endian: Endian
The endianness of the minidump which is used for memory accesses.
Implementations§
source§impl<'a> MinidumpMemory<'a>
impl<'a> MinidumpMemory<'a>
pub fn read( desc: &MINIDUMP_MEMORY_DESCRIPTOR, data: &'a [u8], endian: Endian ) -> Result<MinidumpMemory<'a>, Error>
source§impl<'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>,
pub fn get_memory_at_address<T>(&self, addr: u64) -> Option<T>where T: TryFromCtx<'a, Endian, [u8], Error = Error>,
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§
source§impl<'a, Descriptor: Clone> Clone for MinidumpMemoryBase<'a, Descriptor>
impl<'a, Descriptor: Clone> Clone for MinidumpMemoryBase<'a, Descriptor>
source§fn clone(&self) -> MinidumpMemoryBase<'a, Descriptor>
fn clone(&self) -> MinidumpMemoryBase<'a, Descriptor>
Returns a copy 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 more