Buffer |
public sealed class BufferReader : IBufferReader, IDataReader, IDataIO, IOffsetDataReader, IDataReferenceReader
The BufferReader type exposes the following members.
| Name | Description | |
|---|---|---|
| BufferReader(ArraySegmentByte) | Constructs a BufferReader. | |
| BufferReader(Byte) | Constructs a BufferReader. |
| Name | Description | |
|---|---|---|
| IsFixed | Returns true if this is a fixed size data source. | |
| Length | Returns the current length of the data. | |
| Position | Returns the current position in the data. | |
| Remaining | Returns the remaining data available. |
| Name | Description | |
|---|---|---|
| Advance | Advances the current packet position.. | |
| Seek | Sets the current packet position. |
| Name | Description | |
|---|---|---|
| Consume |
Returns a new data reader pointing to the next length bytes, and advances the current packet position.
Implies EnsureAsync(length).
(Defined by DataReaderExtensions) | |
| GetString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| Peek |
Returns a new packet pointing to the next length bytes, but does not advance the current packet position.
Implies EnsureAsync(length).
(Defined by DataReaderExtensions) | |
| ReadBit |
Reads a bit from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions) | |
| ReadBit |
Reads a bit at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadBoolean |
Reads a boolean from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions) | |
| ReadBoolean |
Reads a boolean at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadByte |
Reads a byte from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions) | |
| ReadByte |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadBytes |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadBytes |
Reads a number of bytes at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadChar |
Reads a character from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions) | |
| ReadChar |
Reads a character at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadDouble |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadDouble |
Reads a 64bit double floating point number at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadDoubleBE |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadDoubleBE |
Reads a 64bit double floating point number at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadDoubleLE |
Reads a 64bit double floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadDoubleLE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadInt16 |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt16 |
Reads a 16bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt16BE |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt16BE |
Reads a 16bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt16LE |
Reads a 16bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt16LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadInt32 |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt32 |
Reads a 32bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt32BE |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt32BE |
Reads a 32bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt32LE |
Reads a 32bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt32LE |
Reads the memory exchange from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadInt64 |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt64 |
Reads a 64bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt64BE |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt64BE |
Reads a 64bit signed integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadInt64LE |
Reads a 64bit signed integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadInt64LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadSByte |
Reads a signed byte from the current position in the buffer.
The current position is advanced by 1 byte.
(Defined by DataReaderExtensions) | |
| ReadSByte |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadSingle |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadSingle |
Reads a 32bit single floating point number at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadSingleBE |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadSingleBE |
Reads a 32bit single floating point number at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadSingleLE |
Reads a 32bit single floating point number at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadSingleLE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadString |
Reads a string from the current position in the buffer.
The current position is advanced by the number of bytes read.
(Defined by DataReaderExtensions) | |
| ReadString |
Reads a string at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt16 |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt16 |
Reads a 16bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt16BE |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt16BE |
Reads a 16bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt16LE |
Reads a 16bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt16LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadUInt32 |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt32 |
Reads a 32bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt32BE |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt32BE |
Reads a 32bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt32LE |
Reads a 32bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt32LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) | |
| ReadUInt64 |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt64 |
Reads a 64bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt64BE |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt64BE |
Reads a 64bit unsigned integer at offset in the buffer.
(Defined by OffsetDataReaderExtensions) | |
| ReadUInt64LE |
Reads a 64bit unsigned integer at the current position in the buffer.
(Defined by DataReaderExtensions) | |
| ReadUInt64LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions) |