com.onlineobject.objectnet Namespace

DataStream..::..Read<(Of <(<'T>)>)> Method (Boolean)

Reads data of type T from the buffer, with an option to rewind the buffer index before reading.

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

Syntax


public T Read<T>(

	bool rewind

)

Type Parameters

T
The type of data to read from the buffer.

Parameters

rewind
Type: Boolean
Whether to rewind the buffer index before reading.

Return Value

The data read from the buffer.

Exceptions


ExceptionCondition
ExceptionThrown when the type T is not supported or does not have a reader.