Bitcoin Core 28.99.0
P2P Digital Currency
|
Serialization wrapper class for custom integers and enums. 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) |
Static Public Attributes | |
static constexpr uint64_t | MAX = 0xffffffffffffffff >> (8 * (8 - Bytes)) |
Serialization wrapper class for custom integers and enums.
It permits specifying the serialized size (1 to 8 bytes) and endianness.
Use the big endian mode for values that are stored in memory in native byte order, but serialized in big endian notation. This is only intended to implement serializers that are compatible with existing formats, and its use is not recommended for new data structures.
Definition at line 527 of file serialize.h.
|
inline |
|
inline |
|
staticconstexpr |
Definition at line 530 of file serialize.h.