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, ModuleDefinition, ITypeCodedIndexProvider, IErrorListener, object?)
Creates a new instance of the BlobSerializationContext class.
public BlobSerializationContext(BinaryStreamWriter writer, ModuleDefinition contextModule, ITypeCodedIndexProvider indexProvider, IErrorListener errorListener, object? diagnosticSource)
Parameters
writerBinaryStreamWriterThe output stream to write the raw data to.
contextModuleModuleDefinitionThe context module to assume the blob is serialized in.
indexProviderITypeCodedIndexProviderThe object responsible for obtaining coded indices to types.
errorListenerIErrorListenerThe object responsible for collecting diagnostic information during the serialization process.
diagnosticSourceobjectWhen available, the object that is reported in diagnostics when serialization of the blob fails.
Properties
ContextModule
Gets the module that is assumed the final blob is stored in.
public ModuleDefinition ContextModule { get; }
Property Value
DiagnosticSource
When available, gets the object that is reported in diagnostics when serialization of the blob fails.
public object? DiagnosticSource { get; }
Property Value
ErrorListener
Gets the bag used to collect diagnostic information during the serialization process.
public IErrorListener ErrorListener { get; }
Property Value
IndexProvider
Gets the object responsible for obtaining coded indices to types.
public ITypeCodedIndexProvider IndexProvider { get; }
Property Value
Writer
Gets the output stream to write the raw data to.
public BinaryStreamWriter Writer { get; }