Panda3D
|
The streambuf object that implements ISubStream. More...
#include "subStreamBuf.h"
Public Member Functions | |
void | close () |
void | open (IStreamWrapper *source, OStreamWrapper *dest, streampos start, streampos end, bool append) |
virtual streampos | seekoff (streamoff off, ios_seekdir dir, ios_openmode which) |
Implements seeking within the stream. More... | |
virtual streampos | seekpos (streampos pos, ios_openmode which) |
A variant on seekoff() to implement seeking within a stream. More... | |
The streambuf object that implements ISubStream.
Definition at line 25 of file subStreamBuf.h.
|
virtual |
Implements seeking within the stream.
Definition at line 128 of file subStreamBuf.cxx.
References IStreamWrapper::seek_gpos_eof(), OStreamWrapper::seek_ppos_eof(), and seekpos().
Referenced by seekpos().
|
virtual |
A variant on seekoff() to implement seeking within a stream.
The MSDN Library claims that it is only necessary to redefine seekoff(), and not seekpos() as well, as the default implementation of seekpos() is supposed to map to seekoff() exactly as I am doing here; but in fact it must do something else, because seeking didn't work on Windows until I redefined this function as well.
Definition at line 249 of file subStreamBuf.cxx.
References OStreamWrapper::seek_eof_write(), IStreamWrapper::seek_read(), OStreamWrapper::seek_write(), and seekoff().
Referenced by seekoff().