OpendTect  7.0
Public Member Functions | Public Attributes | List of all members
std::fixedstreambuf Class Reference

Adapter to use a fixed buffer as a stream. More...

Inheritance diagram for std::fixedstreambuf:
[legend]

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
 
fixedstreambufsetbuf (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_
 

Detailed Description

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.

<>

Constructor & Destructor Documentation

◆ fixedstreambuf()

std::fixedstreambuf::fixedstreambuf ( char_type *  b,
off_type  sz,
bool  manbuf = false 
)
inline

◆ ~fixedstreambuf()

std::fixedstreambuf::~fixedstreambuf ( )
inline

Member Function Documentation

◆ seekoff()

pos_type std::fixedstreambuf::seekoff ( off_type  offs,
ios_base::seekdir  sd,
ios_base::openmode  which 
)
inlineoverride

◆ seekpos()

pos_type std::fixedstreambuf::seekpos ( pos_type  newpos,
ios_base::openmode  which 
)
inlineoverride

◆ setbuf()

fixedstreambuf* std::fixedstreambuf::setbuf ( char_type *  b,
streamsize  n 
)
inlineoverride

◆ xsgetn()

streamsize std::fixedstreambuf::xsgetn ( char_type *  s,
streamsize  n 
)
inlineoverride

◆ xsputn()

streamsize std::fixedstreambuf::xsputn ( const char_type *  s,
streamsize  n 
)
inlineoverride

Member Data Documentation

◆ buf_

char_type* std::fixedstreambuf::buf_

◆ mine_

bool std::fixedstreambuf::mine_

◆ newpos_

off_type std::fixedstreambuf::newpos_

◆ sz_

off_type std::fixedstreambuf::sz_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024