FDO API Reference Feature Data Objects
template<typename T>
virtual FDO_API_COMMON FdoInt32 FdoIStreamReaderTmpl< T >::ReadNext ( 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.

Parameters:
buffer Buffer holding data read in
offset Index in the buffer indicating the beginning of the output buffer. The caller is responsable for allocating a buffer of a proper size.
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 the number of items actually read in. When 0 (zero) then the end-of-stream was reached.

Implemented in FdoIoObjectStreamReader< T >, and FdoIoObjectStreamReader< unsigned char >.


Comments or suggestions? Send us feedback.