IPacketWriterInsert Method |
Returns a new packet writer pointing to the current position in this packet. Anything written into the new packet
will be inserted into the data buffer when this packet is resolved.
If length is non-negative, then a fixed packet will be returned. Implies Ensure(length).
If this packet is not fixed, and length is negative, then an expandable packet will be returned.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
SyntaxIPacketWriter Insert(
int length,
string description
)
Parameters
- length
- Type: SystemInt32
The number of bytes to insert. - description
- Type: SystemString
Printable packet/message/connection descrition.
Return Value
Type:
IPacketWriterA new packet writer for writing the inserted data into.
See Also