An output streambuf for memory access. More...
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 |
An output streambuf for memory access.
Definition at line 240 of file memoryStreamBuffer.H.
|
protecteddefault |
Default construct.
|
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().
|
inlineprotectedvirtual |
Put sequence of characters.
Definition at line 250 of file memoryStreamBuffer.H.
|
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().
|
inline |
The buffer capacity.
Definition at line 289 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::capacity().
|
inline |
Const UList access to the characters written (shallow copy).
Definition at line 295 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::list().
|
inline |
Non-const UList access to the characters written (shallow copy).
Definition at line 301 of file memoryStreamBuffer.H.
|
inline |
Some information about the output buffer position/capacity.
Definition at line 307 of file memoryStreamBuffer.H.
References os().
Referenced by UOListStreamAllocator::printBufInfo().
|
inline |
The buffer put position.
Definition at line 140 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::size().