![]() |
OpendTect
6.3
|
Adapter to use a fixed buffer as a stream. More...
Public Member Functions | |
| fixedstreambuf (char_type *b, off_type sz, bool manbuf=false) | |
| ~fixedstreambuf () | |
| virtual fixedstreambuf * | setbuf (char_type *b, streamsize n) |
| virtual pos_type | seekoff (off_type offs, ios_base::seekdir sd, ios_base::openmode which) |
| virtual pos_type | seekpos (pos_type newpos, ios_base::openmode which) |
| virtual streamsize | xsgetn (char_type *s, streamsize n) |
| virtual streamsize | xsputn (const char_type *s, streamsize n) |
Public Attributes | |
| char_type * | buf_ |
| off_type | sz_ |
| bool | mine_ |
| off_type | newpos_ |
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 |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
| 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. 2017