<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.3.26207.106" />

System.Reflection.Metadata.BlobWriter

public struct BlobWriter
public Blob Blob { get; }

public int Length { get; }

public int Offset { get; set; }

public int RemainingBytes { get; }

public BlobWriter(int size)

public BlobWriter(byte[] buffer)

public BlobWriter(Blob blob)

public BlobWriter(byte[] buffer, int start, int count)

public void Align(int alignment)

public void Clear()

public bool ContentEquals(BlobWriter other)

Compares the current content of this writer with another one.

public void PadTo(int offset)

public byte[] ToArray()

public byte[] ToArray(int start, int byteCount)

public ImmutableArray<byte> ToImmutableArray(int start, int byteCount)

public void WriteBoolean(bool value)

public void WriteByte(byte value)

public void WriteBytes(byte value, int byteCount)

public void WriteBytes(Byte* buffer, int byteCount)

public void WriteBytes(BlobBuilder source)

public int WriteBytes(Stream source, int byteCount)

public void WriteBytes(ImmutableArray<byte> buffer)

public void WriteBytes(ImmutableArray<byte> buffer, int start, int byteCount)

public void WriteBytes(byte[] buffer)

public void WriteBytes(byte[] buffer, int start, int byteCount)

public void WriteCompressedInteger(int value)

Implements compressed unsigned integer encoding as defined by ECMA-335-II chapter 23.2: Blobs and signatures.

public void WriteCompressedSignedInteger(int value)

Implements compressed signed integer encoding as defined by ECMA-335-II chapter 23.2: Blobs and signatures.

public void WriteConstant(object value)

Writes a constant value (see ECMA-335 Partition II section 22.9) at the current position.

public void WriteDateTime(DateTime value)

public void WriteDecimal(decimal value)

public void WriteDouble(double value)

public void WriteGuid(Guid value)

public void WriteInt16(short value)

public void WriteInt16BE(short value)

public void WriteInt32(int value)

public void WriteInt32BE(int value)

public void WriteInt64(long value)

public void WriteReference(int reference, bool isSmall)

Writes a reference to a heap (heap offset) or a table (row number).

public void WriteSByte(sbyte value)

public void WriteSerializedString(string str)

Writes a string in SerString format (see ECMA-335-II 23.3 Custom attributes).

public void WriteSingle(float value)

public void WriteUInt16(ushort value)

public void WriteUInt16BE(ushort value)

public void WriteUInt32(uint value)

public void WriteUInt32BE(uint value)

public void WriteUInt64(ulong value)

public void WriteUserString(string value)

Writes a string in User String (#US) heap format (see ECMA-335-II 24.2.4 #US and #Blob heaps).

public void WriteUTF16(char[] value)

Writes a UTF16 (little-endian) encoded string at the current position.

public void WriteUTF16(string value)

Writes a UTF16 (little-endian) encoded string at the current position.

public void WriteUTF8(string value, bool allowUnpairedSurrogates)

Writes a UTF8 encoded string at the current position.