memorybuf::out Class Reference

An output streambuf for memory access. More...

Inheritance diagram for memorybuf::out:
[legend]
Collaboration diagram for memorybuf::out:
[legend]

Public Member Functions

 out (char *s, std::streamsize n)
 Construct for character array (can be nullptr) and number of bytes. More...
 
void resetp (char *s, std::streamsize n)
 Reset for character array (can be nullptr) and number of bytes. More...
 
std::streamsize capacity () const
 The buffer capacity. More...
 
const UList< char > list () const
 Const UList access to the characters written (shallow copy). More...
 
UList< char > list ()
 Non-const UList access to the characters written (shallow copy). More...
 
void printBufInfo (Ostream &os) const
 Some information about the output buffer position/capacity. More...
 
std::streamsize tellp () const
 The buffer put position. More...
 

Protected Member Functions

 out ()=default
 Default construct. More...
 
virtual std::streamsize xsputn (const char *s, std::streamsize n)
 Put sequence of characters. More...
 
- Protected Member Functions inherited from memorybuf
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...
 
std::streamsize tellg () const
 
std::streamsize tellp () const
 

Detailed Description

An output streambuf for memory access.

Definition at line 240 of file memoryStreamBuffer.H.

Constructor & Destructor Documentation

◆ out() [1/2]

out ( )
protecteddefault

Default construct.

◆ out() [2/2]

out ( char *  s,
std::streamsize  n 
)
inline

Construct for character array (can be nullptr) and number of bytes.

Definition at line 266 of file memoryStreamBuffer.H.

References n, memorybuf::out::resetp(), and s().

Here is the call graph for this function:

Member Function Documentation

◆ xsputn()

virtual std::streamsize xsputn ( const char *  s,
std::streamsize  n 
)
inlineprotectedvirtual

Put sequence of characters.

Definition at line 250 of file memoryStreamBuffer.H.

References n, and s().

Here is the call graph for this function:

◆ resetp()

void resetp ( char *  s,
std::streamsize  n 
)
inline

Reset for character array (can be nullptr) and number of bytes.

Sets put pointer to the begin.

Definition at line 273 of file memoryStreamBuffer.H.

Referenced by memorybuf::out::out().

Here is the caller graph for this function:

◆ capacity()

std::streamsize capacity ( ) const
inline

The buffer capacity.

Definition at line 289 of file memoryStreamBuffer.H.

Referenced by UOListStreamAllocator::capacity().

Here is the caller graph for this function:

◆ list() [1/2]

const UList< char > list ( ) const
inline

Const UList access to the characters written (shallow copy).

Definition at line 295 of file memoryStreamBuffer.H.

Referenced by UOListStreamAllocator::list().

Here is the caller graph for this function:

◆ list() [2/2]

UList< char > list ( )
inline

Non-const UList access to the characters written (shallow copy).

Definition at line 301 of file memoryStreamBuffer.H.

◆ printBufInfo()

void printBufInfo ( Ostream os) const
inline

Some information about the output buffer position/capacity.

Definition at line 307 of file memoryStreamBuffer.H.

References os().

Referenced by UOListStreamAllocator::printBufInfo().

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

◆ tellp()

std::streamsize tellp ( ) const
inline

The buffer put position.

Definition at line 140 of file memoryStreamBuffer.H.

Referenced by UOListStreamAllocator::size().

Here is the caller graph for this function:

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