Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SubStreamBuf Class Reference

The streambuf object that implements ISubStream. More...

#include "subStreamBuf.h"

Inheritance diagram for SubStreamBuf:

Public Member Functions

 SubStreamBuf (const SubStreamBuf &copy)=delete
 
void close ()
 
void open (IStreamWrapper *source, OStreamWrapper *dest, std::streampos start, std::streampos end, bool append)
 
virtual std::streampos seekoff (std::streamoff off, ios_seekdir dir, ios_openmode which)
 Implements seeking within the stream.
 
virtual std::streampos seekpos (std::streampos pos, ios_openmode which)
 A variant on seekoff() to implement seeking within a stream.
 

Detailed Description

The streambuf object that implements ISubStream.

Definition at line 23 of file subStreamBuf.h.

Constructor & Destructor Documentation

◆ SubStreamBuf()

SubStreamBuf::SubStreamBuf ( )

Definition at line 28 of file subStreamBuf.cxx.

◆ ~SubStreamBuf()

SubStreamBuf::~SubStreamBuf ( )
virtual

Definition at line 71 of file subStreamBuf.cxx.

Member Function Documentation

◆ close()

void SubStreamBuf::close ( )

Definition at line 103 of file subStreamBuf.cxx.

◆ open()

void SubStreamBuf::open ( IStreamWrapper * source,
OStreamWrapper * dest,
std::streampos start,
std::streampos end,
bool append )

Definition at line 82 of file subStreamBuf.cxx.

◆ seekoff()

streampos SubStreamBuf::seekoff ( std::streamoff off,
ios_seekdir dir,
ios_openmode which )
virtual

Implements seeking within the stream.

Definition at line 129 of file subStreamBuf.cxx.

References IStreamWrapper::seek_gpos_eof(), and OStreamWrapper::seek_ppos_eof().

Referenced by seekpos().

◆ seekpos()

streampos SubStreamBuf::seekpos ( std::streampos pos,
ios_openmode which )
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 243 of file subStreamBuf.cxx.

References seekoff().


The documentation for this class was generated from the following files: