Click or drag to resize

PacketWriterInsert Method

Returns a new packet 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: 11.0.0.7658
Syntax
C#
public abstract PacketWriter Insert(
	int length
)

Parameters

length
Type: SystemInt32
The number of bytes to insert.

Return Value

Type: PacketWriter
A new PacketWriter for writing the inserted data into.
See Also