Bitcoin ABC 0.30.5
P2P Digital Currency
|
Helper for differentially encoded Compact Size integers in lists. More...
#include <serialize.h>
Public Member Functions | |
template<typename Stream , typename I > | |
void | Ser (Stream &s, I v) |
template<typename Stream , typename I > | |
void | Unser (Stream &s, I &v) |
Private Attributes | |
uint64_t | m_shift = 0 |
Helper for differentially encoded Compact Size integers in lists.
Instead of using raw indexes, the number encoded is the difference between the current index and the previous index, minus one. For example, a first index of 0 implies a real index of 0, a second index of 0 thereafter refers to a real index of 1, etc.
To be used with a VectorFormatter.
Definition at line 761 of file serialize.h.
|
inline |
Definition at line 765 of file serialize.h.
|
inline |
Definition at line 772 of file serialize.h.
|
private |
Definition at line 762 of file serialize.h.