Click or drag to resize

IDataWriter Interface

A class that can write data to a data sink at the current position.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
public interface IDataWriter

The IDataWriter type exposes the following members.

Properties
  NameDescription
Public propertyIsFixed
Returns true if this is a fixed size data source.
Public propertyLength
Returns the current length of the data.
Public propertyPosition
Returns the current position in the data.
Public propertyRemaining
Returns the remaining space available. (Always 0 for an expandable buffer.)
Top
Methods
  NameDescription
Public methodAdvance
Advances the current data position..
Public methodWriteBit
Writes a bit at the current position in the data.
Public methodWriteBoolean
Writes a boolean at the current position in the data.
Public methodWriteByte
Writes a byte at the current position in the data.
Public methodWriteBytes(Byte)
Writes a bytes at the current position in the data.
Public methodWriteBytes(Buffer)
Writes a bytes at the current position in the data.
Public methodWriteChar
Writes an 8bit character at the current position in the data.
Public methodWriteDouble
Writes a double floating point number at the current position in the data.
Public methodWriteDoubleBE
Writes a double floating point number at the current position in the data.
Public methodWriteDoubleLE
Writes a double floating point number at the current position in the data.
Public methodWriteInt16
Writes a 16bit signed integer at the current position in the data.
Public methodWriteInt16BE
Writes a 16bit signed integer at the current position in the data.
Public methodWriteInt16LE
Writes a 16bit signed integer at the current position in the data.
Public methodWriteInt32
Writes a 32bit signed integer at the current position in the data.
Public methodWriteInt32BE
Writes a 32bit signed integer at the current position in the data.
Public methodWriteInt32LE
Writes a 32bit signed integer at the current position in the data.
Public methodWriteInt64
Writes a 64bit signed integer at the current position in the data.
Public methodWriteInt64BE
Writes a 64bit signed integer at the current position in the data.
Public methodWriteInt64LE
Writes a 64bit signed integer at the current position in the data.
Public methodWriteSByte
Writes a signed byte at the current position in the data.
Public methodWriteSingle
Writes a single floating point number at the current position in the data.
Public methodWriteSingleBE
Writes a single floating point number at the current position in the data.
Public methodWriteSingleLE
Writes a single floating point number at the current position in the data.
Public methodWriteString
Writes a string at the current position in the data.
Public methodWriteUInt16
Writes a 16bit unsigned integer at the current position in the data.
Public methodWriteUInt16BE
Writes a 16bit unsigned integer at the current position in the data.
Public methodWriteUInt16LE
Writes a 16bit unsigned integer at the current position in the data.
Public methodWriteUInt32
Writes a 32bit unsigned integer at the current position in the data.
Public methodWriteUInt32BE
Writes a 32bit unsigned integer at the current position in the data.
Public methodWriteUInt32LE
Writes a 32bit unsigned integer at the current position in the data.
Public methodWriteUInt64
Writes a 64bit unsigned integer at the current position in the data.
Public methodWriteUInt64BE
Writes a 64bit unsigned integer at the current position in the data.
Public methodWriteUInt64LE
Writes a 64bit unsigned integer at the current position in the data.
Top
Extension Methods
  NameDescription
Public Extension MethodWriteAsBit
Writes a bit at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Boolean). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by DataWriter.)
Public Extension MethodWriteAsBoolean
Writes a boolean at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Boolean). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by DataWriter.)
Public Extension MethodWriteAsByte
Writes a byte at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Byte). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by DataWriter.)
Public Extension MethodWriteAsChar
Writes a character at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Char). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by DataWriter.)
Public Extension MethodWriteAsDouble
Writes a 64bit double floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Double). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsDoubleBE
Writes a 64bit double floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Double). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsDoubleLE
Writes a 64bit double floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Double). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt16
Writes a 16bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt16BE
Writes a 16bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt16LE
Writes a 16bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt32
Writes a 32bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt32BE
Writes a 32bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt32LE
Writes a 32bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt64
Writes a 64bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt64BE
Writes a 64bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsInt64LE
Writes a 64bit signed integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsSByte
Writes a signed byte at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.SByte). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by DataWriter.)
Public Extension MethodWriteAsSingle
Writes a 32bit single floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Single). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsSingleBE
Writes a 32bit single floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Single). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsSingleLE
Writes a 32bit single floating point number at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Single). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsString
Writes a string at the current position in the packet packet. The current position is advanced by the number of bytes written.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt16
Writes a 16bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt16BE
Writes a 16bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt16LE
Writes a 16bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt32
Writes a 32bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt32BE
Writes a 32bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt32LE
Writes a 32bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt64
Writes a 64bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt64BE
Writes a 64bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Public Extension MethodWriteAsUInt64LE
Writes a 64bit unsigned integer at the current position in the packet packet. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by DataWriter.)
Top
See Also