Click or drag to resize

PacketWriterExtensionsWriteBytes Method (IPacketWriter, Int32)

Prepare a buffer for writing bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.

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

Parameters

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

Return Value

Type: BufferSegment
A buffer into which data can be written.

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