Click or drag to resize

PacketReaderCreate Method (Stream, PacketKey, Endian, BinaryTextEncoding, String)

Creates a PacketReader from a stream of data. The underlying stream is left open when the PacketReader is closed.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static PacketReader Create(
	Stream stream,
	PacketKey packetKey,
	Endian? endian,
	BinaryTextEncoding? textEncoding,
	string? description
)

Parameters

stream
Type: System.IOStream
The underlying data source.
packetKey
Type: Demo3D.IOPacketKey
The PacketKey that holds the lock on the underlying stream.
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