PacketWriterCreate Method (Buffer, Int32, Int32, Endian, BinaryTextEncoding) |
Creates a fixed size PacketWriter from a buffer of data.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntaxpublic static PacketWriter Create(
Buffer buffer,
int offset,
int length,
Endian endian,
BinaryTextEncoding textEncoding
)
Parameters
- buffer
- Type: Demo3D.IOBuffer
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 of strings in the packet (or null if not known).
Return Value
Type:
PacketWriterA new PacketWriter.
See Also