Click or drag to resize

PacketReaderCreate Method (Byte, Int32, Int32, Endian, BinaryTextEncoding, String)

Creates a fixed size PacketReader from a buffer of data.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static PacketReader Create(
	byte[] buffer,
	int offset,
	int length,
	Endian? endian,
	BinaryTextEncoding? textEncoding,
	string? description
)

Parameters

buffer
Type: SystemByte
The buffer of data.
offset
Type: SystemInt32
The offset of the first byte in the buffer.
length
Type: SystemInt32
The number of bytes in packet.
endian
Type: Demo3D.IOEndian
The endian format of the data (or null if not known).
textEncoding
Type: Demo3D.IOBinaryTextEncoding
The encoding of strings in the packet (or null if not known).
description
Type: SystemString
Printable packet/message/connection descrition.

Return Value

Type: PacketReader
A new PacketReader.
See Also