com.onlineobject.objectnet Namespace

DataHandler<(Of <(<'T>)>)>..::..Write Method (Object, array<Byte>[]()[][]%, Int32%, Type)

Writes data of a specified type to a buffer at a specified offset.

Namespace:  com.onlineobject.objectnet
Assembly:  ObjectNetAPI (in ObjectNetAPI.dll)

Syntax


public virtual int Write(

	Object data,

	ref byte[] buffer,

	ref int offset,

	Type dataType

)

Parameters

data
Type: Object
The data to write.
buffer
Type: array<Byte>[]()[][]%
The buffer to write the data to.
offset
Type: Int32%
The offset in the buffer at which to start writing.
dataType
Type: Type
The type of the data to write.

Return Value

The number of bytes written to the buffer.