PacketWriter Properties |
The PacketWriter type exposes the following members.
| Name | Description | |
|---|---|---|
| BaseStream |
When overriden in a derived class, returns the base stream (if any).
| |
| CanGrow |
Packet can be expanded.
| |
| DataLengthOfParent |
Returns the length in bytes from this position to the current parent packet Position.
For a PacketReader this is the length from this PacketPosition to our parents current Position.
For a PacketWriter it's the length from this PacketPosition to the end of our Parent packet.
(Inherited from PacketPosition.) | |
| Endian |
Endianess for integral types.
(Inherited from PacketIO.) | |
| ID |
Optional ID used in error messages.
(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.
The Length of a packet may change without Ensure being called if it's an expandable PacketWriter and data is inserted.
(Inherited from PacketIO.) | |
| LengthToCurrentPositionOfParent |
Returns the length in bytes from this position to the current position of our parent packet.
(Inherited from PacketPosition.) | |
| LengthToEndOfParent |
Returns the length in bytes from this position to the end of our parent packet.
(Inherited from PacketIO.) | |
| NotifiableChildWriters |
List of all child writers that need notifying.
| |
| Parent |
Returns the parent packet, or null.
(Inherited from PacketPosition.) | |
| Position |
Returns the current position in this packet.
The Position of a packet may change without Advance being called if it's an expandable PacketWriter and data is inserted.
(Inherited from PacketIO.) | |
| PositionInParent |
Returns the current position with respect to our parent packet.
(Inherited from PacketIO.) | |
| Remaining |
Returns the remaining data/space available in this 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.
(Inherited from PacketIO.) | |
| Resolved |
Packet has been resolved into concrete data.
| |
| TextEncoding |
Encoding for text strings.
(Inherited from PacketIO.) | |
| Top |
Returns the top parent.
(Inherited from PacketIO.) |