memorybuf Class Reference

A streambuf for memory similar to std::spanbuf (C++23) More...

Inheritance diagram for memorybuf:
Collaboration diagram for memorybuf:

Classes

class  in_base
 The base input streambuf with memory access. More...
 
class  in_dynamic
 An output streambuf for memory access. More...
 
class  out_base
 An output streambuf for memory access. More...
 
class  out_dynamic
 An output streambuf for memory access. More...
 

Protected Member Functions

virtual std::streampos seekoff (std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out)
 Set position pointer to relative position. More...
 
virtual std::streampos seekpos (std::streampos pos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out)
 Set position pointer to absolute position. More...
 

Detailed Description

A streambuf for memory similar to std::spanbuf (C++23)

A std::streambuf used for memory buffer streams such as ispanstream, ocharstream, etc.

Definition at line 49 of file memoryStreamBuffer.H.

Member Function Documentation

◆ seekoff()

virtual std::streampos seekoff ( std::streamoff  off,
std::ios_base::seekdir  way,
std::ios_base::openmode  which = std::ios_base::in|std::ios_base::out 
)
inlineprotectedvirtual

Set position pointer to relative position.

Definition at line 59 of file memoryStreamBuffer.H.

References stdFoam::end().

Referenced by memorybuf::seekpos().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ seekpos()

virtual std::streampos seekpos ( std::streampos  pos,
std::ios_base::openmode  which = std::ios_base::in|std::ios_base::out 
)
inlineprotectedvirtual

Set position pointer to absolute position.

Definition at line 123 of file memoryStreamBuffer.H.

References Foam::pos(), and memorybuf::seekoff().

Here is the call graph for this function:

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