Base class for streams. More...
#include <ibstream.h>

Public Types | |
| enum | IStreamSeekMode { kIBSeekSet = 0, kIBSeekCur, kIBSeekEnd } |
Public Member Functions | |
| virtual tresult | read (void *buffer, int32 numBytes, int32 *numBytesRead=0)=0 |
| Reads binary data from stream. | |
| virtual tresult | write (void *buffer, int32 numBytes, int32 *numBytesWritten=0)=0 |
| Writes binary data to stream. | |
| virtual tresult | seek (int64 pos, int32 mode, int64 *result=0)=0 |
| Sets stream read-write position. | |
| virtual tresult | tell (int64 *pos)=0 |
| Gets current stream read-write position. | |
Static Public Attributes | |
| static const FUID | iid |
Base class for streams.
| enum IStreamSeekMode |
Reads binary data from stream.
| 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.
| 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.
| 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.
| pos | : is assigned the current position if function succeeds |