Bewerken

Delen via


BlobReader Struct

Definition

public value class BlobReader
public struct BlobReader
type BlobReader = struct
Public Structure BlobReader
Inheritance
BlobReader

Constructors

BlobReader(Byte*, Int32)

Creates a reader of the specified memory block.

Properties

CurrentPointer

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

Length

Gets the total length of the underlying memory block.

Offset

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

RemainingBytes

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

StartPointer

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

Methods

Align(Byte)

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

IndexOf(Byte)

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

ReadBlobHandle()

Reads a Blob heap handle encoded as a compressed integer.

ReadBoolean()
ReadByte()
ReadBytes(Int32)

Reads bytes starting at the current position.

ReadBytes(Int32, Byte[], Int32)

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

ReadChar()
ReadCompressedInteger()

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

ReadCompressedSignedInteger()

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

ReadConstant(ConstantTypeCode)

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

ReadDateTime()
ReadDecimal()

Reads a Decimal number.

ReadDouble()
ReadGuid()
ReadInt16()
ReadInt32()
ReadInt64()
ReadSByte()
ReadSerializationTypeCode()

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

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.

ReadSignatureHeader()
ReadSignatureTypeCode()

Reads a type code encoded in a signature.

ReadSingle()
ReadTypeHandle()

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

ReadUInt16()
ReadUInt32()
ReadUInt64()
ReadUTF16(Int32)

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

ReadUTF8(Int32)

Reads a UTF8 encoded string starting at the current position.

Reset()

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

SeekOffset(Int32)
SkipBytes(Int32)
TryReadCompressedInteger(Int32)

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

TryReadCompressedSignedInteger(Int32)

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

Applies to