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>

source

pub fn read( desc: &MINIDUMP_MEMORY_DESCRIPTOR, data: &'a [u8], endian: Endian ) -> Result<MinidumpMemory<'a>, Error>

source

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

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

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