Bitcoin
|
#include <streams.h>
Public Member Functions | |
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) | |
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) |
Private Attributes | |
const int | m_type |
const int | m_version |
const std::vector< unsigned char > & | m_data |
size_t | m_pos = 0 |
Minimal stream for reading from an existing vector by reference
|
inline |
[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. |
|
inline |
(other params same as above)
[in] | args | A list of items to deserialize starting at pos. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |