PacketReader Properties |
The PacketReader type exposes the following members.
| Name | Description | |
|---|---|---|
| BaseStream |
Exposes access to the underlying stream (or null).
Only returns a stream if the underlying data source is a Stream.
| |
| 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 PacketIO.) | |
| ID |
Optional ID to identify the packet (eg source/destination, packet section, etc).
(Inherited from PacketIO.) | |
| IsFixed |
Returns true if this is a fixed size packet. Ensure can't expand a fixed packet.
(Inherited from PacketIO.) | |
| Length |
Returns the current length of the packet.
(Overrides PacketIOLength.) | |
| Parent |
Returns the parent packet, or null.
(Inherited from PacketPosition.) | |
| Position |
Returns the current position in the packet.
(Overrides PacketIOPosition.) | |
| PositionInParent |
Returns the current position with respect to our parent packet.
(Inherited from PacketIO.) | |
| Remaining |
Returns the remaining data/space available in the packet. If it's a fixed-size packet, then this is definitive.
Otherwise Ensure can be used to try to extend the packet with more data/space.
(Overrides PacketIORemaining.) | |
| TextEncoding |
Encoding for text strings.
(Inherited from PacketIO.) | |
| Top |
Returns the top parent.
(Inherited from PacketIO.) | |
| ValidFrom |
Returns the low water mark of the packet. Data prior to this mark may have been discarded and cannot be read.
|