OpendTect
7.0
|
Adapter to use a fixed buffer as a stream. More...
Public Member Functions | |
fixedstreambuf (char_type *b, off_type sz, bool manbuf=false) | |
~fixedstreambuf () | |
pos_type | seekoff (off_type offs, ios_base::seekdir sd, ios_base::openmode which) override |
pos_type | seekpos (pos_type newpos, ios_base::openmode which) override |
fixedstreambuf * | setbuf (char_type *b, streamsize n) override |
streamsize | xsgetn (char_type *s, streamsize n) override |
streamsize | xsputn (const char_type *s, streamsize n) override |
Public Attributes | |
char_type * | buf_ |
bool | mine_ |
off_type | newpos_ |
off_type | sz_ |
Adapter to use a fixed buffer as a stream.
Usage like:
std::fixedstreambuf fsb( mybuf, mybufsize ); std::istream strm( &fsb );
Tested for istream with char* only.
<>
|
inline |
|
inline |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
char_type* std::fixedstreambuf::buf_ |
bool std::fixedstreambuf::mine_ |
off_type std::fixedstreambuf::newpos_ |
off_type std::fixedstreambuf::sz_ |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024