Input buffer wrapper.
More...
#include <InputBufferWrapper.h>
◆ InputBufferWrapper()
sese::io::InputBufferWrapper::InputBufferWrapper |
( |
const char * | buffer, |
|
|
size_t | cap ) |
◆ getBuffer()
const char * sese::io::InputBufferWrapper::getBuffer |
( |
| ) |
const |
|
nodiscard |
◆ getCapacity()
size_t sese::io::InputBufferWrapper::getCapacity |
( |
| ) |
const |
|
nodiscard |
◆ getLength()
size_t sese::io::InputBufferWrapper::getLength |
( |
| ) |
const |
|
nodiscard |
◆ peek()
int64_t sese::io::InputBufferWrapper::peek |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
Read content without stepping
- Parameters
-
buffer | Buffer |
length | Buffer size |
- Returns
- Actual size read
Implements sese::io::PeekableStream.
◆ read()
int64_t sese::io::InputBufferWrapper::read |
( |
void * | buffer, |
|
|
size_t | length ) |
|
overridevirtual |
◆ reset()
void sese::io::InputBufferWrapper::reset |
( |
| ) |
|
|
noexcept |
◆ trunc()
int64_t sese::io::InputBufferWrapper::trunc |
( |
size_t | length | ) |
|
|
overridevirtual |
◆ buffer
const char* sese::io::InputBufferWrapper::buffer = nullptr |
|
protected |
◆ cap
size_t sese::io::InputBufferWrapper::cap = 0 |
|
protected |
◆ pos
size_t sese::io::InputBufferWrapper::pos = 0 |
|
protected |
The documentation for this class was generated from the following files: