com.onlineobject.objectnet Namespace

IDataReader<(Of <(<'T>)>)>..::..Read<(Of <(<'E>)>)> Method (array<Byte>[]()[][], Int32%)

Generic method to read data of any type from a buffer and updates the offset.

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

Syntax


E Read<E>(

	byte[] buffer,

	ref int offset

)

Type Parameters

E
The type of data to be read.

Parameters

buffer
Type: array<Byte>[]()[][]
The byte array to read from.
offset
Type: Int32%
The reference to the current position in the buffer, which will be updated after the read operation.

Return Value

The data read from the buffer, of type E.