pub type MinidumpMemory64List<'a> = MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR64>;
Expand description

A list of large memory regions included in a minidump (usually a full dump).

Aliased Type§

struct MinidumpMemory64List<'a> { /* private fields */ }

Implementations§

source§

impl<'mdmp> MinidumpMemory64List<'mdmp>

source

pub fn print<T: Write>(&self, f: &mut T, brief: bool) -> Result<()>

Write a human-readable description of this MinidumpMemory64List to f.

This is very verbose, it is the format used by minidump_dump.

source§

impl<'mdmp, Descriptor> MinidumpMemoryListBase<'mdmp, Descriptor>

source

pub fn new() -> MinidumpMemoryListBase<'mdmp, Descriptor>

Return an empty MinidumpMemoryListBase.

source

pub fn from_regions( regions: Vec<MinidumpMemoryBase<'mdmp, Descriptor>> ) -> MinidumpMemoryListBase<'mdmp, Descriptor>

Create a MinidumpMemoryListBase from a list of MinidumpMemoryBases.

source

pub fn memory_at_address( &self, address: u64 ) -> Option<&MinidumpMemoryBase<'mdmp, Descriptor>>

Return a MinidumpMemoryBase containing memory at address, if one exists.

source

pub fn iter<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>

Iterate over the memory regions in the order contained in the minidump.

The iterator returns items of MinidumpMemoryBase as &'slf MinidumpMemoryBase<'mdmp, Descriptor>. That is the lifetime of the item is bound to the lifetime of the iterator itself ('slf), while the slice inside MinidumpMemoryBase pointing at the memory itself has the lifetime of the Minidump struct (’mdmp).

source

pub fn by_addr<'slf>( &'slf self ) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>

Iterate over the memory regions in order by memory address.

Trait Implementations§

source§

impl<'a, Descriptor: Debug> Debug for MinidumpMemoryListBase<'a, Descriptor>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, Descriptor> Default for MinidumpMemoryListBase<'a, Descriptor>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> MinidumpStream<'a> for MinidumpMemory64List<'a>

source§

const STREAM_TYPE: u32 = 9u32

The stream type constant used in the md::MDRawDirectory entry. This is usually a MINIDUMP_STREAM_TYPE but it’s left as a u32 to allow external projects to add support for their own custom streams.
source§

fn read( bytes: &'a [u8], all: &'a [u8], endian: Endian, _system_info: Option<&MinidumpSystemInfo> ) -> Result<MinidumpMemory64List<'a>, Error>

Read this MinidumpStream type from bytes. Read more