An input streambuf for memory access. More...


Public Member Functions | |
| in (char *s, std::streamsize n) | |
| Construct for character array (can be nullptr) and number of bytes. More... | |
| void | resetg (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 input characters (shallow copy). More... | |
| UList< char > | list () |
| Non-const UList access to the input characters (shallow copy). More... | |
| void | printBufInfo (Ostream &os) const |
| Some information about the input buffer position/capacity. More... | |
| std::streamsize | tellg () const |
| The buffer get position. More... | |
Protected Member Functions | |
| in ()=default | |
| Default construct. More... | |
| virtual std::streamsize | xsgetn (char *s, std::streamsize n) |
| Get 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 input streambuf for memory access.
Definition at line 162 of file memoryStreamBuffer.H.
|
protecteddefault |
Default construct.
|
inline |
Construct for character array (can be nullptr) and number of bytes.
Definition at line 195 of file memoryStreamBuffer.H.
References n, memorybuf::in::resetg(), and s.

|
inlineprotectedvirtual |
Get sequence of characters.
Definition at line 176 of file memoryStreamBuffer.H.
References Foam::BitOps::count(), n, and s.

|
inline |
Reset for character array (can be nullptr) and number of bytes.
Sets get pointer to the begin.
Definition at line 205 of file memoryStreamBuffer.H.
Referenced by memorybuf::in::in(), uiliststream::reset(), and UIListStreamAllocator::reset().

|
inline |
The buffer capacity.
Definition at line 225 of file memoryStreamBuffer.H.
Referenced by UIListStreamAllocator::size().

|
inline |
Const UList access to the input characters (shallow copy).
Definition at line 233 of file memoryStreamBuffer.H.
Referenced by UIListStreamAllocator::list().

|
inline |
Non-const UList access to the input characters (shallow copy).
Definition at line 241 of file memoryStreamBuffer.H.
|
inline |
Some information about the input buffer position/capacity.
Definition at line 249 of file memoryStreamBuffer.H.
References os().
Referenced by UIListStreamAllocator::printBufInfo().


|
inline |
The buffer get position.
Definition at line 133 of file memoryStreamBuffer.H.
Referenced by UIListStreamAllocator::tellg().

Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.