Click or drag to resize

PacketReader Properties

The PacketReader type exposes the following members.

Properties
  NameDescription
Public propertyBaseStream
Exposes access to the underlying stream (or null). Only returns a stream if the underlying data source is a Stream.
Public propertyDataAvailable
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.
Public propertyEndian
Endianess for integral types.
(Inherited from PacketIO.)
Public propertyID
Optional ID to identify the packet (eg source/destination, packet section, etc).
(Inherited from PacketIO.)
Public propertyIsFixed
Returns true if this is a fixed size packet. Ensure can't expand a fixed packet.
(Inherited from PacketIO.)
Public propertyLength
Returns the current length of the packet.
(Overrides PacketIOLength.)
Public propertyParent
Returns the parent packet, or null.
(Inherited from PacketPosition.)
Public propertyPosition
Returns the current position in the packet.
(Overrides PacketIOPosition.)
Public propertyPositionInParent
Returns the current position with respect to our parent packet.
(Inherited from PacketIO.)
Public propertyRemaining
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.)
Public propertyTextEncoding
Encoding for text strings.
(Inherited from PacketIO.)
Public propertyTop
Returns the top parent.
(Inherited from PacketIO.)
Public propertyValidFrom
Returns the low water mark of the packet. Data prior to this mark may have been discarded and cannot be read.
Top
See Also