Click or drag to resize

PacketWriter Class

Represents a packet writer/constructor.
Inheritance Hierarchy
SystemObject
  Demo3D.IOPacketPosition
    Demo3D.IOPacketIO
      Demo3D.IOPacketWriter

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 11.0.0.7658
Syntax
C#
public abstract class PacketWriter : PacketIO, 
	IDataWriter, IDisposable

The PacketWriter type exposes the following members.

Constructors
  NameDescription
Protected methodPacketWriter
Creates a new packet writer.
Top
Properties
  NameDescription
Public propertyBaseStream
When overriden in a derived class, returns the base stream (if any).
Public propertyCanGrow
Packet can be expanded.
Public propertyDataLengthOfParent
Returns the length in bytes from this position to the current parent packet Position. For a PacketReader this is the length from this PacketPosition to our parents current Position. For a PacketWriter it's the length from this PacketPosition to the end of our Parent packet.
(Inherited from PacketPosition.)
Public propertyEndian
Endianess for integral types.
(Inherited from PacketIO.)
Public propertyID
Optional ID used in error messages.
(Inherited from PacketIO.)
Public propertyIsFixed
Returns true if this is a fixed size packet. Ensure can't expand a fixed packet.
(Inherited from PacketIO.)
Public propertyLength
Returns the current length of the packet. The Length of a packet may change without Ensure being called if it's an expandable PacketWriter and data is inserted.
(Inherited from PacketIO.)
Protected propertyLengthToCurrentPositionOfParent
Returns the length in bytes from this position to the current position of our parent packet.
(Inherited from PacketPosition.)
Protected propertyLengthToEndOfParent
Returns the length in bytes from this position to the end of our parent packet.
(Inherited from PacketIO.)
Protected propertyNotifiableChildWriters
List of all child writers that need notifying.
Public propertyParent
Returns the parent packet, or null.
(Inherited from PacketPosition.)
Public propertyPosition
Returns the current position in this packet. The Position of a packet may change without Advance being called if it's an expandable PacketWriter and data is inserted.
(Inherited from PacketIO.)
Public propertyPositionInParent
Returns the current position with respect to our parent packet.
(Inherited from PacketIO.)
Public propertyRemaining
Returns the remaining data/space available in this packet. If it's a fixed-size packet, then this is definitive. Otherwise Ensure can be used to try to extend the packet with more data/space.
(Inherited from PacketIO.)
Public propertyResolved
Packet has been resolved into concrete data.
Public propertyTextEncoding
Encoding for text strings.
(Inherited from PacketIO.)
Public propertyTop
Returns the top parent.
(Inherited from PacketIO.)
Top
Methods
  NameDescription
Public methodAdvance
Advances the current packet position. Implies Ensure(length).
(Inherited from PacketIO.)
Public methodClear
Remove all data from the packet so it can be re-written.
Public methodStatic memberCreate(Endian, BinaryTextEncoding)
Creates an expandable PacketWriter. The packet will expand to accomodate the data written into it.
Public methodStatic memberCreate(Byte, Endian, BinaryTextEncoding)
Creates a fixed size PacketWriter from a buffer of data.
Public methodStatic memberCreate(Int32, Endian, BinaryTextEncoding)
Creates a fixed size PacketWriter from a buffer of data.
Public methodStatic memberCreate(Buffer, Endian, BinaryTextEncoding)
Creates a fixed size PacketWriter from a buffer of data.
Public methodStatic memberCreate(PacketWriterPacketIOMethods, Endian, BinaryTextEncoding)
Creates a PacketWriter.
Public methodStatic memberCreate(Stream, PacketLock, Endian, BinaryTextEncoding)
Creates an expandable PacketWriter writing to a data stream. The packet will expand to accomodate the data written into it.
Public methodStatic memberCreate(Byte, Int32, Int32, Endian, BinaryTextEncoding)
Creates a fixed size PacketWriter from a buffer of data.
Public methodStatic memberCreate(Buffer, Int32, Int32, Endian, BinaryTextEncoding)
Creates a fixed size PacketWriter from a buffer of data.
Public methodDispose
Releases any resources associated with this packet.
Public methodEnsure
Ensure that the next length bytes of data/space are available in the packet. If there isn't enough already available, and the packet isn't fixed, then it'll attempt to read more data into or create more space in the packet.
(Inherited from PacketIO.)
Public methodFlush
Flush the data to the underlying stream.
Public methodFlushAsync
Flush the data to the underlying stream.
Protected methodGetBuffer
Get a buffer that covers a specific portion of the packet.
(Inherited from PacketIO.)
Protected methodGetEndian
Returns the current endian format.
(Inherited from PacketIO.)
Protected methodGetTextEncoding
Returns the current text encoding.
(Inherited from PacketIO.)
Public methodInsert
Returns a new packet 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. If length is non-negative, then a fixed packet will be returned. Implies Ensure(length). If this packet is not fixed, and length is negative, then an expandable packet will be returned.
Protected methodLengthAfterChild
Returns the length of the this packet after the end of a given direct child packet position.
(Inherited from PacketIO.)
Public methodMarkPosition
Return a position marker.
(Inherited from PacketIO.)
Protected methodNotifyAfterResolve
Fire OnAfterResolve event for this packet and all its descendants.
Protected methodNotifyBeforeResolve
Fire OnBeforeResolve event for this packet and all its descendants.
Protected methodPositionOfChild
Returns the current absolute position of a direct child packet position.
(Inherited from PacketIO.)
Public methodReadBit
Reads a bit at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadBoolean
Reads a boolean at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadByte
Reads a byte at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadBytes(Int32, Buffer)
Reads a number of bytes at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadBytes(Int32, Int32)
Reads a number of bytes at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadBytes(Int32, PacketWriter, Int32)
Reads a number of bytes at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadBytes(Int32, Byte, Int32, Int32)
Reads a number of bytes at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadChar
Reads a character at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadDouble
Reads a 64bit double floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadDoubleBE
Reads a 64bit double floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadDoubleLE
Reads a 64bit double floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt16
Reads a 16bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt16BE
Reads a 16bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt16LE
Reads a 16bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt32
Reads a 32bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt32BE
Reads a 32bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt32LE
Reads a 32bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt64
Reads a 64bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt64BE
Reads a 64bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadInt64LE
Reads a 64bit signed integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadSByte
Reads a signed byte at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadSingle
Reads a 32bit single floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadSingleBE
Reads a 32bit single floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadSingleLE
Reads a 32bit single floating point number at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadString(Int32)
Reads a string at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadString(Int32, BinaryTextEncoding)
Reads a string at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt16
Reads a 16bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt16BE
Reads a 16bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt16LE
Reads a 16bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt32
Reads a 32bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt32BE
Reads a 32bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt32LE
Reads a 32bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt64
Reads a 64bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt64BE
Reads a 64bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReadUInt64LE
Reads a 64bit unsigned integer at offset in the buffer.
(Inherited from PacketIO.)
Public methodReset
Reset packet (and its ancestor packets) so that it can be resolved and flushed again.
Public methodResolve
Resolve this packet into concrete data. Resolve makes two passes across the packet from start to end, depth-first. The first pass it calls OnBeforeResolve for each constituent packet, and the second pass it calls OnAfterResolve and collects the data to be returned. You can write to a packet during Resolve.
Protected methodResolveBuffer
Resolve this packet into concrete data.
Public 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.
Public 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.
Public 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.
Public 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.
Public 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.
Public 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.
Public 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.
Public 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.
Public methodWriteBit
Writes a bit at the current position in the packet packet. The current position is advanced by 1 byte.
Public methodWriteBoolean
Writes a boolean at the current position in the packet packet. The current position is advanced by 1 byte.
Public methodWriteByte
Writes a byte at the current position in the packet packet. The current position is advanced by 1 byte.
Public methodWriteBytes(Byte)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteBytes(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.
Public methodWriteBytes(Buffer)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteBytes(PacketReader, Int32)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteBytes(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.
Public methodWriteBytes(PacketReader, Int32, Int32)
Writes a bytes at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteChar
Writes a character at the current position in the packet packet. The current position is advanced by 1 byte.
Public methodWriteDouble
Writes a 64bit double floating point number at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteDoubleBE
Writes a 64bit double floating point number at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteDoubleLE
Writes a 64bit double floating point number at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteInt16
Writes a 16bit signed integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteInt16BE
Writes a 16bit signed integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteInt16LE
Writes a 16bit signed integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteInt32
Writes a 32bit signed integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteInt32BE
Writes a 32bit signed integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteInt32LE
Writes a 32bit signed integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteInt64
Writes a 64bit signed integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteInt64BE
Writes a 64bit signed integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteInt64LE
Writes a 64bit signed integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteSByte
Writes a signed byte at the current position in the packet packet. The current position is advanced by 1 byte.
Public methodWriteSingle
Writes a 32bit single floating point number at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteSingleBE
Writes a 32bit single floating point number at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteSingleLE
Writes a 32bit single floating point number at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteString(BinaryString)
Writes a string at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteString(BinaryString, BinaryTextEncoding)
Writes a string at the current position in the packet packet. The current position is advanced by the number of bytes written.
Public methodWriteUInt16
Writes a 16bit unsigned integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteUInt16BE
Writes a 16bit unsigned integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteUInt16LE
Writes a 16bit unsigned integer at the current position in the packet packet. The current position is advanced by 2 bytes.
Public methodWriteUInt32
Writes a 32bit unsigned integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteUInt32BE
Writes a 32bit unsigned integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteUInt32LE
Writes a 32bit unsigned integer at the current position in the packet packet. The current position is advanced by 4 bytes.
Public methodWriteUInt64
Writes a 64bit unsigned integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteUInt64BE
Writes a 64bit unsigned integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Public methodWriteUInt64LE
Writes a 64bit unsigned integer at the current position in the packet packet. The current position is advanced by 8 bytes.
Top
Events
  NameDescription
Public eventOnAfterResolve
Occurs when this packet is being resolved. Used, for example, to fill in missing information such as packet lengths and checksums.
Public eventOnBeforeResolve
Occurs when this packet is being resolved. Used, for example, to fill in missing information such as packet lengths and checksums.
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