Click or drag to resize

PacketWriterExtensions Class

IPacketWriter extensions.
Inheritance Hierarchy
SystemObject
  Demo3D.IOPacketWriterExtensions

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public static class PacketWriterExtensions

The PacketWriterExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberFlush
Flush the data to the underlying stream.
Public methodStatic memberFlushAsync
Flush the data to the underlying stream.
Public methodStatic memberInsert
Returns a new buffer writer pointing to the current position in this packet. Anything written into the new packet will be inserted into the data buffer when this packet is resolved.
Public methodStatic memberWriteAsDouble
Writes a 64bit double floating point number at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Double). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
Public methodStatic memberWriteAsInt16
Writes a 16bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
Public methodStatic memberWriteAsInt32
Writes a 32bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
Public methodStatic memberWriteAsInt64
Writes a 64bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
Public methodStatic memberWriteAsSingle
Writes a 32bit single floating point number at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Single). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
Public methodStatic memberWriteAsUInt16
Writes a 16bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
Public methodStatic memberWriteAsUInt32
Writes a 32bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
Public methodStatic memberWriteAsUInt64
Writes a 64bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
Public methodStatic memberWriteBytes(IPacketWriter, ArraySegmentByte)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteBytes(IPacketWriter, Byte)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteBytes(IPacketWriter, Int32)
Prepare a buffer for writing bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteBytes(IPacketWriter, IDataReader, Int32)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteBytes(IPacketWriter, IOffsetDataReader, Int32, Int32)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteBytes(IPacketWriter, Byte, Int32, Int32)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteDouble
Writes a double floating point number at the current position in the buffer.
Public methodStatic memberWriteInt16
Writes a 16bit signed integer at the current position in the buffer.
Public methodStatic memberWriteInt32
Writes a 32bit signed integer at the current position in the buffer.
Public methodStatic memberWriteInt64
Writes a 64bit signed integer at the current position in the buffer.
Public methodStatic memberWriteSingle
Writes a single floating point number at the current position in the buffer.
Public methodStatic memberWriteString
Writes a string at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodStatic memberWriteUInt16
Writes a 16bit unsigned integer at the current position in the buffer.
Public methodStatic memberWriteUInt32
Writes a 32bit unsigned integer at the current position in the buffer.
Public methodStatic memberWriteUInt64
Writes a 64bit unsigned integer at the current position in the buffer.
Top
See Also