struct Stream

Declaration

struct Stream { /* full declaration omitted */ };

Description

The base class for all minidump streams. The "Type" of the stream corresponds to the Stream Type field in the minidump file. The "Kind" field specifies how are we going to treat it. For highly specialized streams (e.g. SystemInfo), there is a 1:1 mapping between Types and Kinds, but in general one stream Kind can be used to represent multiple stream Types (e.g. any unrecognised stream Type will be handled via RawContentStream). The mapping from Types to Kinds is fixed and given by the static getKind function.

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:27

Member Variables

public const llvm::MinidumpYAML::Stream::StreamKind Kind
public const minidump::StreamType Type

Method Overview

  • public Stream(llvm::MinidumpYAML::Stream::StreamKind Kind, minidump::StreamType Type)
  • public static std::unique_ptr<Stream> create(minidump::StreamType Type)
  • public static Expected<std::unique_ptr<Stream>> create(const minidump::Directory & StreamDesc, const object::MinidumpFile & File)
  • public static llvm::MinidumpYAML::Stream::StreamKind getKind(minidump::StreamType Type)
  • public virtual ~Stream()

Methods

Stream(
    llvm::MinidumpYAML::Stream::StreamKind Kind,
    minidump::StreamType Type)

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:39

Parameters

llvm::MinidumpYAML::Stream::StreamKind Kind
minidump::StreamType Type

static std::unique_ptr<Stream> create(
    minidump::StreamType Type)

Description

Create an empty stream of the given Type.

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:49

Parameters

minidump::StreamType Type

static Expected<std::unique_ptr<Stream>> create(
    const minidump::Directory& StreamDesc,
    const object::MinidumpFile& File)

Description

Create a stream from the given stream directory entry.

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:53

Parameters

const minidump::Directory& StreamDesc
const object::MinidumpFile& File

static llvm::MinidumpYAML::Stream::StreamKind
getKind(minidump::StreamType Type)

Description

Get the stream Kind used for representing streams of a given Type.

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:46

Parameters

minidump::StreamType Type

virtual ~Stream()

Declared at: llvm/include/llvm/ObjectYAML/MinidumpYAML.h:40