PacketReaderCreate Method (PacketReaderPacketIOMethods, Endian, BinaryTextEncoding, IEnumerableBuffer) |
Creates a PacketReader.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntaxpublic static PacketReader Create(
PacketReaderPacketIOMethods methods,
Endian endian,
BinaryTextEncoding textEncoding,
IEnumerable<Buffer> preload = null
)
Parameters
- methods
- Type: Demo3D.IOPacketReaderPacketIOMethods
The methods for accessing underlying data. - endian
- Type: Demo3D.IOEndian
The endian format of the data (or null if not known). - textEncoding
- Type: Demo3D.IOBinaryTextEncoding
The encoding of of strings in the packet (or null if not known). - preload (Optional)
- Type: System.Collections.GenericIEnumerableBuffer
Pre-read data to preload this PacketReader. This data will be returned before any more data is read from the stream.
Return Value
Type:
PacketReaderA new PacketReader
See Also