Equity
Bitcoin Protocol Library
|
A compressed 64-bit value. More...
#include <Serialize.h>
Public Member Functions | |
VASize (uint64_t v) | |
VASize (uint8_t const *&in, size_t &size) | |
uint64_t | value () const |
Returns the value. | |
Overrides Serializable | |
virtual void | serialize (std::vector< uint8_t > &out) const override |
virtual json | toJson () const override |
A compressed 64-bit value.
This value is primarily used in serializaton of arrays to indicate the number of elements in an array. In the reference code, it is known as CompactSize.
|
inlineexplicit |
v | The value |
P2p::VASize::VASize | ( | uint8_t const *& | in, |
size_t & | size | ||
) |
[in,out] | in | pointer to the next byte to deserialize |
[in,out] | size | number of bytes remaining in the serialized stream |