Minimal stream for reading from an existing vector by reference.
More...
#include <streams.h>
|
| | VectorReader (int type, int version, const std::vector< unsigned char > &data, size_t pos) |
| |
| template<typename... Args> |
| | VectorReader (int type, int version, const std::vector< unsigned char > &data, size_t pos, Args &&... args) |
| | (other params same as above) More...
|
| |
| template<typename T > |
| VectorReader & | operator>> (T &&obj) |
| |
| int | GetVersion () const |
| |
| int | GetType () const |
| |
| size_t | size () const |
| |
| bool | empty () const |
| |
| void | read (char *dst, size_t n) |
| |
Minimal stream for reading from an existing vector by reference.
Definition at line 133 of file streams.h.
◆ VectorReader() [1/2]
| VectorReader::VectorReader |
( |
int |
type, |
|
|
int |
version, |
|
|
const std::vector< unsigned char > & |
data, |
|
|
size_t |
pos |
|
) |
| |
|
inline |
- Parameters
-
| [in] | type | Serialization Type |
| [in] | version | Serialization Version (including any flags) |
| [in] | data | Referenced byte vector to overwrite/append |
| [in] | pos | Starting position. Vector index where reads should start. |
Definition at line 149 of file streams.h.
◆ VectorReader() [2/2]
template<typename... Args>
| VectorReader::VectorReader |
( |
int |
type, |
|
|
int |
version, |
|
|
const std::vector< unsigned char > & |
data, |
|
|
size_t |
pos, |
|
|
Args &&... |
args |
|
) |
| |
|
inline |
(other params same as above)
- Parameters
-
| [in] | args | A list of items to deserialize starting at pos. |
Definition at line 162 of file streams.h.
◆ empty()
| bool VectorReader::empty |
( |
| ) |
const |
|
inline |
◆ GetType()
| int VectorReader::GetType |
( |
| ) |
const |
|
inline |
◆ GetVersion()
| int VectorReader::GetVersion |
( |
| ) |
const |
|
inline |
◆ operator>>()
◆ read()
| void VectorReader::read |
( |
char * |
dst, |
|
|
size_t |
n |
|
) |
| |
|
inline |
◆ size()
| size_t VectorReader::size |
( |
| ) |
const |
|
inline |
◆ m_data
| const std::vector<unsigned char>& VectorReader::m_data |
|
private |
◆ m_pos
| size_t VectorReader::m_pos = 0 |
|
private |
◆ m_type
| const int VectorReader::m_type |
|
private |
◆ m_version
| const int VectorReader::m_version |
|
private |
The documentation for this class was generated from the following file: