IDataWriter Interface |
Namespace: Demo3D.IO
public interface IDataWriter : IDataIO, IBufferResolver
The IDataWriter type exposes the following members.
| Name | Description | |
|---|---|---|
| IsFixed |
Returns true if this is a fixed size data source.
(Inherited from IDataIO.) | |
| Length |
Returns the current length of the data.
(Inherited from IDataIO.) | |
| Position |
Returns the current position in the data.
(Inherited from IDataIO.) | |
| Remaining |
Returns the remaining data/space available. (Always 0 for an expandable buffer.)
(Inherited from IDataIO.) |
| Name | Description | |
|---|---|---|
| Advance |
Advances the current data position..
(Inherited from IDataIO.) | |
| Resolve |
Resolves the data to a concrete buffer.
(Inherited from IBufferResolver.) |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| WriteAsString |
Writes a string at the current position in the buffer.
The current position is advanced by the number of bytes written.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| 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.
(Defined by DataWriterExtensions.) | |
| WriteBit |
Writes a bit at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteBoolean |
Writes a boolean at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteByte |
Writes a byte at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteBytes(ArraySegmentByte) | Overloaded.
Writes a bytes at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteBytes(Byte) | Overloaded.
Writes a bytes at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteBytes(IDataReader, Int32) | Overloaded.
Writes a bytes at the current position in the packet packet.
The current position is advanced by the number of bytes written.
(Defined by DataWriterExtensions.) | |
| WriteBytes(Byte, Int32, Int32) | Overloaded.
Writes a bytes at the current position in the data.
(Defined by DataWriterExtensions.) | |
| WriteChar |
Writes an 8bit character at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteDouble |
Writes a double floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteDoubleBE |
Writes a double floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteDoubleLE |
Writes a double floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt16 |
Writes a 16bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt16BE |
Writes a 16bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt16LE |
Writes a 16bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt32 |
Writes a 32bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt32BE |
Writes a 32bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt32LE |
Writes a 32bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt64 |
Writes a 64bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt64BE |
Writes a 64bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteInt64LE |
Writes a 64bit signed integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteSByte |
Writes a signed byte at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteSingle |
Writes a single floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteSingleBE |
Writes a single floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteSingleLE |
Writes a single floating point number at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteString |
Writes a string at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt16 |
Writes a 16bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt16BE |
Writes a 16bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt16LE |
Writes a 16bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt32 |
Writes a 32bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt32BE |
Writes a 32bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt32LE |
Writes a 32bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt64 |
Writes a 64bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt64BE |
Writes a 64bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) | |
| WriteUInt64LE |
Writes a 64bit unsigned integer at the current position in the buffer.
(Defined by DataWriterExtensions.) |