PacketWriterCreate Method (Stream, PacketLock, Endian, BinaryTextEncoding, String) |
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: 15.0.2.11458
Syntaxpublic static PacketWriter Create(
Stream stream,
PacketLock? packetLock,
Endian? endian,
BinaryTextEncoding? textEncoding,
string? description
)
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 strings in the packet (or null if not known). - description
- Type: SystemString
Printable packet/message/connection descrition.
Return Value
Type:
PacketWriterA new PacketWriter
See Also