Struct minidump::MinidumpMemoryBase
source · [−]pub struct MinidumpMemoryBase<'a, Descriptor> {
pub desc: Descriptor,
pub base_address: u64,
pub size: u64,
pub bytes: &'a [u8],
pub endian: Endian,
}
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.
endian: Endian
The endianness of the minidump which is used for memory accesses.
Implementations
sourceimpl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
impl<'a> MinidumpMemoryBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
pub fn read(
desc: &MINIDUMP_MEMORY_DESCRIPTOR,
data: &'a [u8],
endian: Endian
) -> Result<MinidumpMemory<'a>, Error>
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>,
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
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more