Trait minidump::MinidumpStream
source · [−]pub trait MinidumpStream<'a>: Sized {
const STREAM_TYPE: u32;
fn read(
bytes: &'a [u8],
all: &'a [u8],
endian: Endian,
system_info: Option<&MinidumpSystemInfo>
) -> Result<Self, Error>;
}
Expand description
The fundamental unit of data in a Minidump
.
Associated Constants
const STREAM_TYPE: u32
const STREAM_TYPE: u32
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.
Required methods
Read this MinidumpStream
type from bytes
.
bytes
is the contents of this specific stream.all
refers to the full contents of the minidump, for reading auxilliary data referred to withMINIDUMP_LOCATION_DESCRIPTOR
s.system_info
is the preparsed SystemInfo stream, if it exists in the minidump.