BlobReader Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public value class BlobReader
public struct BlobReader
type BlobReader = struct
Public Structure BlobReader
- Inheritance
Constructors
| Name | Description |
|---|---|
| BlobReader(Byte*, Int32) |
Creates a reader of the specified memory block. |
Properties
| Name | Description |
|---|---|
| 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. |
Methods
| Name | Description |
|---|---|
| ReadBoolean() | |
| ReadByte() | |
| ReadBytes(Int32) |
Reads bytes starting at the current position. |
| 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. |
| ReadDouble() | |
| 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. |
| 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. |