<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-rc.2.26504.105" />

System.Reflection.Metadata.BlobReader

public struct BlobReader
public Byte* CurrentPointer { get; }

Gets a pointer to the byte at the current position of the reader.

public int Length { get; }

Gets the total length of the underlying memory block.

public int Offset { get; set; }

Gets or sets the offset from the start of the blob to the current position.

public int RemainingBytes { get; }

Gets the number of bytes remaining from current position to the end of the underlying memory block.

public Byte* StartPointer { get; }

Gets a pointer to the byte at the start of the underlying memory block.

public BlobReader(Byte* buffer, int length)

Creates a reader of the specified memory block.

public void Align(byte alignment)

Repositions the reader forward by the number of bytes required to satisfy the given alignment.

public int IndexOf(byte value)

Searches for a specified byte in the blob following the current position.

Reads a Blob heap handle encoded as a compressed integer.

public bool ReadBoolean()

public byte ReadByte()

public byte[] ReadBytes(int byteCount)

Reads bytes starting at the current position.

public void ReadBytes(int byteCount, byte[] buffer, int bufferOffset)

Reads bytes starting at the current position and writes them to the specified buffer starting at the specified offset.

public char ReadChar()

public int ReadCompressedInteger()

Reads an unsigned compressed integer value. See Metadata Specification section II.23.2: Blobs and signatures.

Reads a signed compressed integer value. See Metadata Specification section II.23.2: Blobs and signatures.

public object ReadConstant(ConstantTypeCode typeCode)

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

public decimal ReadDecimal()

Reads a Decimal number.

public double ReadDouble()

public Guid ReadGuid()

public short ReadInt16()

public int ReadInt32()

public long ReadInt64()

public sbyte ReadSByte()

Reads a type code encoded in a serialized custom attribute value.

public string ReadSerializedString()

Reads a string encoded as a compressed integer containing its length followed by its contents in UTF8. Null strings are encoded as a single 0xFF byte.

Reads a type code encoded in a signature.

public float ReadSingle()

Reads a type handle encoded in a signature as TypeDefOrRefOrSpecEncoded (see ECMA-335 II.23.2.8).

public ushort ReadUInt16()

public uint ReadUInt32()

public ulong ReadUInt64()

public string ReadUTF16(int byteCount)

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

public string ReadUTF8(int byteCount)

Reads a UTF8 encoded string starting at the current position.

public void Reset()

Repositions the reader to the start of the underlying memory block.

public bool TryReadCompressedInteger(out int value)

Reads an unsigned compressed integer value. See Metadata Specification section II.23.2: Blobs and signatures.

public bool TryReadCompressedSignedInteger(out int value)

Reads a signed compressed integer value. See Metadata Specification section II.23.2: Blobs and signatures.