IPacketReader Properties |
The IPacketReader type exposes the following members.
| Name | Description | |
|---|---|---|
| DataAvailable |
Returns true if data is immediately available. (Specifically that EnsureAsync(1) won't block.)
Returns true if there's any data remaining in the packet (this.Remaining > 0), or if the underlying stream has data available.
Returning false does not necessarily mean that data is not available. It may be that it's not possible to detect data.
| |
| Endian |
Endianess for integral types.
(Inherited from IPacketIO.) | |
| ID |
Optional ID to identify the packet (eg source/destination, packet section, etc).
(Inherited from IPacketIO.) | |
| IsFixed |
Returns true if this is a fixed size data source.
(Inherited from IDataIO.) | |
| Length |
Returns the current length of the data.
(Inherited from IDataIO.) | |
| Parent |
Returns the parent packet, or null.
(Inherited from IPacketIO.) | |
| Position |
Returns the current position in the data.
(Inherited from IDataIO.) | |
| Remaining |
Returns the remaining data/space available. (Always 0 for an expandable buffer.)
(Inherited from IDataIO.) | |
| TextEncoding |
Encoding for text strings.
(Inherited from IPacketIO.) |