Minimal stream for reading from an existing byte array by std::span.
More...
#include <streams.h>
|
std::span< const unsigned char > | m_data |
|
Minimal stream for reading from an existing byte array by std::span.
Definition at line 100 of file streams.h.
◆ SpanReader()
SpanReader::SpanReader |
( |
std::span< const unsigned char > |
data | ) |
|
|
inlineexplicit |
- Parameters
-
[in] | data | Referenced byte vector to overwrite/append |
Definition at line 109 of file streams.h.
◆ empty()
bool SpanReader::empty |
( |
| ) |
const |
|
inline |
◆ ignore()
void SpanReader::ignore |
( |
size_t |
n | ) |
|
|
inline |
◆ operator>>()
◆ read()
void SpanReader::read |
( |
std::span< std::byte > |
dst | ) |
|
|
inline |
◆ size()
size_t SpanReader::size |
( |
| ) |
const |
|
inline |
◆ m_data
std::span<const unsigned char> SpanReader::m_data |
|
private |
The documentation for this class was generated from the following file: