DataWriterExtensions Class |
Namespace: Demo3D.IO
public static class DataWriterExtensions
The DataWriterExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| WriteAsBit |
Writes a bit at the current position in the buffer.
The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Boolean).
ChangeType(Object, Type, BinaryConvertConversionType)
The current position is advanced by 1 byte.
| |
| WriteAsBoolean |
Writes a boolean at the current position in the buffer.
The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Boolean).
ChangeType(Object, Type, BinaryConvertConversionType)
The current position is advanced by 1 byte.
| |
| WriteAsByte |
Writes a byte at the current position in the buffer.
The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Byte).
ChangeType(Object, Type, BinaryConvertConversionType)
The current position is advanced by 1 byte.
| |
| WriteAsChar |
Writes a character at the current position in the buffer.
The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Char).
ChangeType(Object, Type, BinaryConvertConversionType)
The current position is advanced by 1 byte.
| |
| 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.
| |
| WriteAsDoubleBE |
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.
| |
| WriteAsDoubleLE |
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.
| |
| WriteAsInt16BE |
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.
| |
| WriteAsInt16LE |
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.
| |
| WriteAsInt32BE |
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.
| |
| WriteAsInt32LE |
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.
| |
| WriteAsInt64BE |
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.
| |
| WriteAsInt64LE |
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.
| |
| WriteAsSByte |
Writes a signed byte at the current position in the buffer.
The object is first converted using BinaryConvert.ChangeType(val, TypeCode.SByte).
ChangeType(Object, Type, BinaryConvertConversionType)
The current position is advanced by 1 byte.
| |
| 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.
| |
| WriteAsSingleBE |
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.
| |
| WriteAsSingleLE |
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.
| |
| WriteAsString |
Writes a string at the current position in the buffer.
The current position is advanced by the number of bytes written.
| |
| 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.
| |
| WriteAsUInt16BE |
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.
| |
| WriteAsUInt16LE |
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.
| |
| WriteAsUInt32BE |
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.
| |
| WriteAsUInt32LE |
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.
| |
| WriteAsUInt64BE |
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.
| |
| WriteAsUInt64LE |
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.
| |
| WriteBit |
Writes a bit at the current position in the buffer.
| |
| WriteBoolean |
Writes a boolean at the current position in the buffer.
| |
| WriteByte |
Writes a byte at the current position in the buffer.
| |
| WriteBytes(IDataWriter, ArraySegmentByte) |
Writes a bytes at the current position in the buffer.
| |
| WriteBytes(IDataWriter, Byte) |
Writes a bytes at the current position in the buffer.
| |
| WriteBytes(IDataWriter, 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(IDataWriter, Byte, Int32, Int32) |
Writes a bytes at the current position in the data.
| |
| WriteChar |
Writes an 8bit character at the current position in the buffer.
| |
| WriteDouble |
Writes a double floating point number at the current position in the buffer.
| |
| WriteDoubleBE |
Writes a double floating point number at the current position in the buffer.
| |
| WriteDoubleLE |
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.
| |
| WriteInt16BE |
Writes a 16bit signed integer at the current position in the buffer.
| |
| WriteInt16LE |
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.
| |
| WriteInt32BE |
Writes a 32bit signed integer at the current position in the buffer.
| |
| WriteInt32LE |
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.
| |
| WriteInt64BE |
Writes a 64bit signed integer at the current position in the buffer.
| |
| WriteInt64LE |
Writes a 64bit signed integer at the current position in the buffer.
| |
| WriteSByte |
Writes a signed byte at the current position in the buffer.
| |
| WriteSingle |
Writes a single floating point number at the current position in the buffer.
| |
| WriteSingleBE |
Writes a single floating point number at the current position in the buffer.
| |
| WriteSingleLE |
Writes a single floating point number at the current position in the buffer.
| |
| WriteString |
Writes a string at the current position in the buffer.
| |
| WriteUInt16 |
Writes a 16bit unsigned integer at the current position in the buffer.
| |
| WriteUInt16BE |
Writes a 16bit unsigned integer at the current position in the buffer.
| |
| WriteUInt16LE |
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.
| |
| WriteUInt32BE |
Writes a 32bit unsigned integer at the current position in the buffer.
| |
| WriteUInt32LE |
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.
| |
| WriteUInt64BE |
Writes a 64bit unsigned integer at the current position in the buffer.
| |
| WriteUInt64LE |
Writes a 64bit unsigned integer at the current position in the buffer.
|