Click or drag to resize

PacketWriterExtensionsInsert Method

Returns a new buffer 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.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static IBufferWriter Insert(
	this IPacketWriter writer,
	int length
)

Parameters

writer
Type: Demo3D.IOIPacketWriter
The packet writer.
length
Type: SystemInt32
The number of bytes to insert.

Return Value

Type: IBufferWriter
A new packet writer for writing the inserted data into.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPacketWriter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also