Click or drag to resize

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

Creates a fixed size PacketReader from a buffer of data.

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

Parameters

buffer  Byte
The buffer of data.
offset  Int32
The offset of the first byte in the buffer.
length  Int32
The number of bytes in packet.
endian  Endian
The endian format of the data (or null if not known).
textEncoding  BinaryTextEncoding
The encoding of strings in the packet (or null if not known).
description  String
Printable packet/message/connection descrition.

Return Value

PacketReader
A new PacketReader.
See Also