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 264 of file memoryStreamBuffer.H.
|
protecteddefault |
Default construct.
|
inline |
Construct for character array (can be nullptr) and number of bytes.
Definition at line 296 of file memoryStreamBuffer.H.
References n, memorybuf::out::resetp(), and s.
|
inlineprotectedvirtual |
Put sequence of characters.
Definition at line 278 of file memoryStreamBuffer.H.
References Foam::BitOps::count(), n, and s.
|
inline |
Reset for character array (can be nullptr) and number of bytes.
Sets put pointer to the begin.
Definition at line 306 of file memoryStreamBuffer.H.
Referenced by memorybuf::out::out().
|
inline |
The buffer capacity.
Definition at line 326 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::capacity().
|
inline |
Const UList access to the characters written (shallow copy).
Definition at line 334 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::list().
|
inline |
Non-const UList access to the characters written (shallow copy).
Definition at line 342 of file memoryStreamBuffer.H.
|
inline |
Some information about the output buffer position/capacity.
Definition at line 350 of file memoryStreamBuffer.H.
References os().
Referenced by UOListStreamAllocator::printBufInfo().
|
inline |
The buffer put position.
Definition at line 141 of file memoryStreamBuffer.H.
Referenced by UOListStreamAllocator::size().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.