Click or drag to resize

DataWriterExtensions Class

IDataWriter extensions.
Inheritance Hierarchy
SystemObject
  Demo3D.IODataWriterExtensions

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

The DataWriterExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodWriteAsBit 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.
Public Extension MethodWriteAsBoolean 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.
Public Extension MethodWriteAsByte 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.
Public Extension MethodWriteAsChar 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.
Public Extension MethodWriteAsDouble 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 Extension MethodWriteAsDoubleBE 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 Extension MethodWriteAsDoubleLE 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 Extension MethodWriteAsInt16 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 Extension MethodWriteAsInt16BE 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 Extension MethodWriteAsInt16LE 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 Extension MethodWriteAsInt32 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 Extension MethodWriteAsInt32BE 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 Extension MethodWriteAsInt32LE 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 Extension MethodWriteAsInt64 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 Extension MethodWriteAsInt64BE 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 Extension MethodWriteAsInt64LE 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 Extension MethodWriteAsSByte 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.
Public Extension MethodWriteAsSingle 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 Extension MethodWriteAsSingleBE 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 Extension MethodWriteAsSingleLE 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 Extension MethodWriteAsString Writes a string at the current position in the buffer. The current position is advanced by the number of bytes written.
Public Extension MethodWriteAsUInt16 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 Extension MethodWriteAsUInt16BE 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 Extension MethodWriteAsUInt16LE 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 Extension MethodWriteAsUInt32 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 Extension MethodWriteAsUInt32BE 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 Extension MethodWriteAsUInt32LE 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 Extension MethodWriteAsUInt64 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 Extension MethodWriteAsUInt64BE 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 Extension MethodWriteAsUInt64LE 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 Extension MethodWriteBit(IDataWriter, Boolean, Int32) Writes a bit at the current position in the buffer.
Public Extension MethodWriteBit(IDataWriter, Int32, Boolean, Int32, Endian) Writes a bit at the current position in the buffer.
Public Extension MethodWriteBitBE Writes a bit at the current position in the buffer.
Public Extension MethodWriteBitLE Writes a bit at the current position in the buffer.
Public Extension MethodWriteBoolean Writes a boolean at the current position in the buffer.
Public Extension MethodWriteByte Writes a byte at the current position in the buffer.
Public Extension MethodWriteBytes(IDataWriter, ArraySegmentByte) Writes a bytes at the current position in the buffer.
Public Extension MethodWriteBytes(IDataWriter, Byte) Writes a bytes at the current position in the buffer.
Public Extension MethodWriteBytes(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.
Public Extension MethodWriteBytes(IDataWriter, Byte, Int32, Int32) Writes a bytes at the current position in the data.
Public Extension MethodWriteChar Writes an 8bit character at the current position in the buffer.
Public Extension MethodWriteDouble Writes a double floating point number at the current position in the buffer.
Public Extension MethodWriteDoubleBE Writes a double floating point number at the current position in the buffer.
Public Extension MethodWriteDoubleLE Writes a double floating point number at the current position in the buffer.
Public Extension MethodWriteInt16 Writes a 16bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt16BE Writes a 16bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt16LE Writes a 16bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt32 Writes a 32bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt32BE Writes a 32bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt32LE Writes a 32bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt64 Writes a 64bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt64BE Writes a 64bit signed integer at the current position in the buffer.
Public Extension MethodWriteInt64LE Writes a 64bit signed integer at the current position in the buffer.
Public Extension MethodWriteSByte Writes a signed byte at the current position in the buffer.
Public Extension MethodWriteSingle Writes a single floating point number at the current position in the buffer.
Public Extension MethodWriteSingleBE Writes a single floating point number at the current position in the buffer.
Public Extension MethodWriteSingleLE Writes a single floating point number at the current position in the buffer.
Public Extension MethodWriteString Writes a string at the current position in the buffer.
Public Extension MethodWriteUInt16 Writes a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt16BE Writes a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt16LE Writes a 16bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt32 Writes a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt32BE Writes a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt32LE Writes a 32bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt64 Writes a 64bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt64BE Writes a 64bit unsigned integer at the current position in the buffer.
Public Extension MethodWriteUInt64LE Writes a 64bit unsigned integer at the current position in the buffer.
Top
See Also