Base class for streams.
More...
#include <ibstream.h>
Base class for streams.
- read/write binary data from/to stream
- get/set stream read-write position (read and write position is the same)
Enumerator |
---|
kIBSeekSet |
set absolute seek position
|
kIBSeekCur |
set seek position relative to current position
|
kIBSeekEnd |
set seek position relative to stream end
|
Reads binary data from stream.
- Parameters
-
buffer | : destination buffer |
numBytes | : amount of bytes to be read |
numBytesRead | : result - how many bytes have been read from stream (set to 0 if this is of no interest) |
Writes binary data to stream.
- Parameters
-
buffer | : source buffer |
numBytes | : amount of bytes to write |
numBytesWritten | : result - how many bytes have been written to stream (set to 0 if this is of no interest) |
Sets stream read-write position.
- Parameters
-
pos | : new stream position (dependent on mode) |
mode | : value of enum IStreamSeekMode |
result | : new seek position (set to 0 if this is of no interest) |
Gets current stream read-write position.
- Parameters
-
pos | : is assigned the current position if function succeeds |