FDO .NET API Reference Feature Data Objects
System::Int32 OSGeo::FDO::Common::Io::IoCharStreamReader::ReadNext ( System::Char  buffer[],
System::Int32  offset,
System::Int32  count 
)

Reads in the next block of items. Use ReadNext( buffer) to read in the entire stream. The caller is responsible to allocate a buffer large enough to store data.

Parameters:
buffer Output array holding data read in.
offset Input index in the array indicating the beginning of the output buffer. If zero, then the buffer is reused. If the end of the buffer, then read in appending mode. Throws "out-of-bounds" exception if not in this range.
count Input number of items to be read in. If -1 read the entire stream. Throws "out-of-bounds" 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.


Comments or suggestions? Send us feedback.