PacketWriterExtensions Methods |
The PacketWriterExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| Flush |
Flush the data to the underlying stream.
| |
| FlushAsync |
Flush the data to the underlying stream.
| |
| Insert |
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.
| |
| WriteAsDouble |
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.
| |
| WriteAsInt16 |
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.
| |
| WriteAsInt32 |
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.
| |
| WriteAsInt64 |
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.
| |
| WriteAsSingle |
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.
| |
| WriteAsUInt16 |
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.
| |
| WriteAsUInt32 |
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.
| |
| WriteAsUInt64 |
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.
| |
| WriteBytes(IPacketWriter, ArraySegmentByte) |
Writes a bytes at the current position in the packet packet.
The current position is advanced by the number of bytes written.
| |
| WriteBytes(IPacketWriter, Byte) |
Writes a bytes at the current position in the packet packet.
The current position is advanced by the number of bytes written.
| |
| WriteBytes(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.
| |
| WriteBytes(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.
| |
| WriteBytes(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.
| |
| WriteBytes(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.
| |
| WriteDouble |
Writes a double floating point number at the current position in the buffer.
| |
| WriteInt16 |
Writes a 16bit signed integer at the current position in the buffer.
| |
| WriteInt32 |
Writes a 32bit signed integer at the current position in the buffer.
| |
| WriteInt64 |
Writes a 64bit signed integer at the current position in the buffer.
| |
| WriteSingle |
Writes a single floating point number at the current position in the buffer.
| |
| WriteString |
Writes a string at the current position in the packet packet.
The current position is advanced by the number of bytes written.
| |
| WriteUInt16 |
Writes a 16bit unsigned integer at the current position in the buffer.
| |
| WriteUInt32 |
Writes a 32bit unsigned integer at the current position in the buffer.
| |
| WriteUInt64 |
Writes a 64bit unsigned integer at the current position in the buffer.
|