Table of Contents

Struct BlobSerializationContext

Namespace
AsmResolver.DotNet.Signatures
Assembly
AsmResolver.DotNet.dll

Describes a context in which a blob signature is to be serialized in.

public readonly struct BlobSerializationContext
Inherited Members

Constructors

BlobSerializationContext(BinaryStreamWriter, ITypeCodedIndexProvider, IErrorListener, object?)

Creates a new instance of the BlobSerializationContext class.

public BlobSerializationContext(BinaryStreamWriter writer, ITypeCodedIndexProvider indexProvider, IErrorListener errorListener, object? diagnosticSource)

Parameters

writer BinaryStreamWriter

The output stream to write the raw data to.

indexProvider ITypeCodedIndexProvider

The object responsible for obtaining coded indices to types.

errorListener IErrorListener

The object responsible for collecting diagnostic information during the serialization process.

diagnosticSource object

When available, the object that is reported in diagnostics when serialization of the blob fails.

Properties

DiagnosticSource

When available, gets the object that is reported in diagnostics when serialization of the blob fails.

public object? DiagnosticSource { get; }

Property Value

object

ErrorListener

Gets the bag used to collect diagnostic information during the serialization process.

public IErrorListener ErrorListener { get; }

Property Value

IErrorListener

IndexProvider

Gets the object responsible for obtaining coded indices to types.

public ITypeCodedIndexProvider IndexProvider { get; }

Property Value

ITypeCodedIndexProvider

Writer

Gets the output stream to write the raw data to.

public BinaryStreamWriter Writer { get; }

Property Value

BinaryStreamWriter