Equity
Bitcoin Protocol Library
Public Member Functions | List of all members
P2p::VarArray< uint8_t > Class Template Reference

An array of uint8_t. More...

#include <Serialize.h>

Inheritance diagram for P2p::VarArray< uint8_t >:
P2p::Serializable

Public Member Functions

 VarArray (std::vector< uint8_t > const &v)
 
 VarArray (uint8_t const *&in, size_t &size)
 
std::vector< uint8_t > value () const
 Returns the bytes contained in the array.
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
json toJson () const override
 

Detailed Description

template<>
class P2p::VarArray< uint8_t >

An array of uint8_t.

This is primarily used for serialization of an array of uint8_t along with the number of elements in the array.

See also
VASize

Constructor & Destructor Documentation

P2p::VarArray< uint8_t >::VarArray ( std::vector< uint8_t > const &  v)
inline
Parameters
vThe bytes to be contained in the array
P2p::VarArray< uint8_t >::VarArray ( uint8_t const *&  in,
size_t &  size 
)
inline
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

The documentation for this class was generated from the following file: