PacketWriterCreate Method (Stream, PacketLock, Endian, BinaryTextEncoding) |
Creates an expandable PacketWriter writing to a data stream. The packet will expand to accomodate the data written into it.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntaxpublic static PacketWriter Create(
Stream stream,
PacketLock packetLock,
Endian endian,
BinaryTextEncoding textEncoding
)
Parameters
- stream
- Type: System.IOStream
The stream to write the packet to. - packetLock
- Type: Demo3D.IOPacketLock
A packet lock that controls access to the underlying stream (or null).
packetLock must be null (no locking), or unlocked.
- 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