|
framework
|
Input frame wrapper. More...
#include <frame.hpp>
Public Types | |
| using | pos_type = std::size_t |
| Iterator position type. | |
| using | off_type = typename std::make_signed< pos_type >::type |
| Iterator offset type. | |
Public Member Functions | |
| raw_input_frame (char const *begin, char const *end) | |
| Frame constructor. More... | |
| FRAMEWORK_ALWAYS_INLINE bool | read (char *s, std::size_t n) |
| Read bytes. | |
| template<std::size_t N> | |
| FRAMEWORK_ALWAYS_INLINE bool | read (char *s) |
| Read bytes. | |
| FRAMEWORK_ALWAYS_INLINE pos_type | tellg () const |
| Input iterator position. | |
| FRAMEWORK_ALWAYS_INLINE bool | seekg (pos_type pos) |
| Seek to position. More... | |
| FRAMEWORK_ALWAYS_INLINE bool | seekg (off_type off, std::ios_base::seekdir dir) |
| Seek to offset. More... | |
Input frame wrapper.
Provides a trivial input stream wrapper around a raw character buffer.
|
inline |
Frame constructor.
|
inline |
Seek to position.
Sets the input iterator to the provided position. Note that the definition used here may not be compatible with that of basic_istream::seekg.
| pos | new input iterator position |
|
inline |
Seek to offset.
Sets the input iterator to an offset relative to the provided position (dir). Note that the definition used here may not be compatible with that of basic_istream::seekg.
| off | input iterator offset |
| dir | reference position |
1.8.3.1-20130402