PacketWriterInsert 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.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic abstract IPacketWriter Insert(
int length,
string? description
)
Parameters
- length Int32
- The number of bytes to insert.
- description String
- Printable packet/message/connection descrition.
Return Value
IPacketWriterA new packet writer for writing the inserted data into.
Implements
IPacketWriterInsert(Int32, String)
See Also