PacketReaderCreate(Stream, Endian, BinaryTextEncoding, String) Method |
Creates a PacketReader from a stream of data.
The underlying stream is left open when the PacketReader is closed.
Namespace: Demo3D.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic static PacketReader Create(
Stream stream,
Endian? endian,
BinaryTextEncoding? textEncoding,
string? description
)
Parameters
- stream Stream
- The underlying data source.
- 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
PacketReaderA new PacketReader.
See Also