com.onlineobject.objectnet Namespace

IDataWritter<(Of <(<'T>)>)>..::..Write Method

Writes the specified data of type T into the provided buffer starting at the given offset.

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

Syntax


int Write(

	T data,

	ref byte[] buffer,

	ref int offset

)

Parameters

data
Type: T
The data to write.
buffer
Type: array<Byte>[]()[][]%
The buffer to write the data into. This buffer is passed by reference.
offset
Type: Int32%
The starting position within the buffer to begin writing. This offset is passed by reference and should be updated to reflect the new position after writing.

Return Value

The number of bytes written to the buffer.