FDO API Reference Feature Data Objects

template<typename T>
virtual FDO_API_COMMON FdoInt32 FdoIStreamReaderTmpl< T >::ReadNext FdoArray< T > *&  buffer,
const FdoInt32  offset = 0,
const FdoInt32  count = -1
[pure virtual]
 

Reads in the next block of items. Use ReadNext( buffer) to read in the entire stream. The caller is responsible to create/dispose the FdoArray.

Parameters:
buffer FdoArray object holding data read in. Cannot be NULL
offset Index in the array indicating the beginning of the output buffer. If the end of the buffer, then read in appending mode (store at the end). Otherwise, overwrite the buffer. Throws "invalid parameter" exception if not in this range.
count Number of items to be read in. If -1 read the entire stream. Throws "invalid parameter" exception if not a positive value or -1.
Returns:
Returns number of items read.

Implemented in FdoIoObjectStreamReader< T >, and FdoIoObjectStreamReader< FdoByte >.


Comments or suggestions? Send us feedback.