[−][src]Struct minidump::MinidumpMemory
A region of memory from the process that wrote the minidump.
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.
Implementations
impl<'a> MinidumpMemory<'a>
[src]
pub fn read(
desc: &MINIDUMP_MEMORY_DESCRIPTOR,
data: &'a [u8]
) -> Result<MinidumpMemory<'a>, Error>
[src]
desc: &MINIDUMP_MEMORY_DESCRIPTOR,
data: &'a [u8]
) -> Result<MinidumpMemory<'a>, Error>
pub fn get_memory_at_address<T>(&self, addr: u64) -> Option<T> where
T: TryFromCtx<'a, Endian, [u8], Error = Error>,
T: SizeWith<Endian>,
[src]
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.
pub fn print<T: Write>(&self, f: &mut T) -> Result<()>
[src]
Write a human-readable description of this MinidumpMemory
to f
.
This is very verbose, it is the format used by minidump_dump
.
pub fn print_contents<T: Write>(&self, f: &mut T) -> Result<()>
[src]
Write the contents of this MinidumpMemory
to f
as a hex string.
Auto Trait Implementations
impl<'a> RefUnwindSafe for MinidumpMemory<'a>
impl<'a> Send for MinidumpMemory<'a>
impl<'a> Sync for MinidumpMemory<'a>
impl<'a> Unpin for MinidumpMemory<'a>
impl<'a> UnwindSafe for MinidumpMemory<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,