Minimal stream for reading from an existing byte array by Span.
More...
#include <streams.h>
Minimal stream for reading from an existing byte array by Span.
Definition at line 129 of file streams.h.
◆ SpanReader()
SpanReader::SpanReader |
( |
int |
type, |
|
|
int |
version, |
|
|
Span< const uint8_t > |
data |
|
) |
| |
|
inline |
- Parameters
-
[in] | type | Serialization Type |
[in] | version | Serialization Version (including any flags) |
[in] | data | Referenced byte vector to overwrite/append |
Definition at line 141 of file streams.h.
◆ empty()
bool SpanReader::empty |
( |
| ) |
const |
|
inline |
◆ GetType()
int SpanReader::GetType |
( |
| ) |
const |
|
inline |
◆ GetVersion()
int SpanReader::GetVersion |
( |
| ) |
const |
|
inline |
◆ operator>>()
◆ read()
void SpanReader::read |
( |
Span< std::byte > |
dst | ) |
|
|
inline |
◆ size()
size_t SpanReader::size |
( |
| ) |
const |
|
inline |
◆ m_data
Span<const uint8_t> SpanReader::m_data |
|
private |
◆ m_type
const int SpanReader::m_type |
|
private |
◆ m_version
const int SpanReader::m_version |
|
private |
The documentation for this class was generated from the following file: