BlobReader BlobReader BlobReader BlobReader Struct

定義

public value class BlobReader
public struct BlobReader
type BlobReader = struct
Public Structure BlobReader
繼承
BlobReaderBlobReaderBlobReaderBlobReader

建構函式

BlobReader(Byte*, Int32) BlobReader(Byte*, Int32) BlobReader(Byte*, Int32) BlobReader(Byte*, Int32)

建立指定記憶體區塊的讀取器。Creates a reader of the specified memory block.

屬性

CurrentPointer CurrentPointer CurrentPointer CurrentPointer

取得讀取器目前位置的指標。Gets a pointer to the byte at the current position of the reader.

Length Length Length Length

取得基礎記憶體的長度。Gets the total length of the underlying memory block.

Offset Offset Offset Offset

取得或設定從 Blob 開頭開始至目前位置的位移。Gets or sets the offset from the start of the blob to the current position.

RemainingBytes RemainingBytes RemainingBytes RemainingBytes

取得從目前位置到基礎記憶體區塊結尾的剩餘位元組數目。Gets the number of bytes remaining from current position to the end of the underlying memory block.

StartPointer StartPointer StartPointer StartPointer

取得基礎記憶體區塊開頭處位元組的指標。Gets a pointer to the byte at the start of the underlying memory block.

方法

Align(Byte) Align(Byte) Align(Byte) Align(Byte)

以滿足所給定對齊方式所需的位元組數目,將讀取器向前重新定位。Repositions the reader forward by the number of bytes required to satisfy the given alignment.

IndexOf(Byte) IndexOf(Byte) IndexOf(Byte) IndexOf(Byte)

在目前位置後面的 Blob 中搜尋指定位元組。Searches for a specified byte in the blob following the current position.

ReadBlobHandle() ReadBlobHandle() ReadBlobHandle() ReadBlobHandle()

讀取編碼為已壓縮整數的 Blob 堆積控制代碼。Reads a Blob heap handle encoded as a compressed integer.

ReadBoolean() ReadBoolean() ReadBoolean() ReadBoolean()
ReadByte() ReadByte() ReadByte() ReadByte()
ReadBytes(Int32, Byte[], Int32) ReadBytes(Int32, Byte[], Int32) ReadBytes(Int32, Byte[], Int32) ReadBytes(Int32, Byte[], Int32)

從目前位置開始讀取位元組,並在指定緩衝區的指定位移處開始將它們寫入。Reads bytes starting at the current position and writes them to the specified buffer starting at the specified offset.

ReadBytes(Int32) ReadBytes(Int32) ReadBytes(Int32) ReadBytes(Int32)

讀取從目前位置開始的位元組。Reads bytes starting at the current position.

ReadChar() ReadChar() ReadChar() ReadChar()
ReadCompressedInteger() ReadCompressedInteger() ReadCompressedInteger() ReadCompressedInteger()

讀取不帶正負號的已壓縮整數值。Reads an unsigned compressed integer value. 請參閱《中繼資料規格》章節 II.23.2:Blob 和簽章。See Metadata Specification section II.23.2: Blobs and signatures.

ReadCompressedSignedInteger() ReadCompressedSignedInteger() ReadCompressedSignedInteger() ReadCompressedSignedInteger()

讀取帶正負號的已壓縮整數值。Reads a signed compressed integer value. 請參閱《中繼資料規格》章節 II.23.2:Blob 和簽章。See Metadata Specification section II.23.2: Blobs and signatures.

ReadConstant(ConstantTypeCode) ReadConstant(ConstantTypeCode) ReadConstant(ConstantTypeCode) ReadConstant(ConstantTypeCode)

從目前位置讀取常數值 (請參閱 ECMA-335 第二篇章節 22.9)。Reads a constant value (see ECMA-335 Partition II section 22.9) from the current position.

ReadDateTime() ReadDateTime() ReadDateTime() ReadDateTime()
ReadDecimal() ReadDecimal() ReadDecimal() ReadDecimal()

讀取 Decimal 數字。Reads a Decimal number.

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

讀取以序列化自訂屬性值編碼的類型代碼。Reads a type code encoded in a serialized custom attribute value.

ReadSerializedString() ReadSerializedString() ReadSerializedString() ReadSerializedString()

將字串讀取成編碼為已壓縮整數,包含其長度接著其內容 (UTF8)。Reads a string encoded as a compressed integer containing its length followed by its contents in UTF8. Null 字串會編碼為單一 0xFF 位元組。Null strings are encoded as a single 0xFF byte.

ReadSignatureHeader() ReadSignatureHeader() ReadSignatureHeader() ReadSignatureHeader()
ReadSignatureTypeCode() ReadSignatureTypeCode() ReadSignatureTypeCode() ReadSignatureTypeCode()

讀取以簽章編碼的類型代碼。Reads a type code encoded in a signature.

ReadSingle() ReadSingle() ReadSingle() ReadSingle()
ReadTypeHandle() ReadTypeHandle() ReadTypeHandle() ReadTypeHandle()

將使用簽章編碼的類型控制代碼讀取為 TypeDefOrRefOrSpecEncoded (請參閱 ECMA-335 II.23.2.8)。Reads a type handle encoded in a signature as TypeDefOrRefOrSpecEncoded (see ECMA-335 II.23.2.8).

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

從目前位置開始讀取 UTF16 (字元組由小到大) 編碼的字串。Reads a UTF16 (little-endian) encoded string starting at the current position.

ReadUTF8(Int32) ReadUTF8(Int32) ReadUTF8(Int32) ReadUTF8(Int32)

從目前位置開始讀取 UTF8 編碼的字串。Reads a UTF8 encoded string starting at the current position.

Reset() Reset() Reset() Reset()

將讀取器重新定位至基礎記憶體區塊的開頭。Repositions the reader to the start of the underlying memory block.

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

讀取不帶正負號的已壓縮整數值。Reads an unsigned compressed integer value. 請參閱《中繼資料規格》章節 II.23.2:Blob 和簽章。See Metadata Specification section II.23.2: Blobs and signatures.

TryReadCompressedSignedInteger(Int32) TryReadCompressedSignedInteger(Int32) TryReadCompressedSignedInteger(Int32) TryReadCompressedSignedInteger(Int32)

讀取帶正負號的已壓縮整數值。Reads a signed compressed integer value. 請參閱《中繼資料規格》章節 II.23.2:Blob 和簽章。See Metadata Specification section II.23.2: Blobs and signatures.

適用於