Bitcoin Core
0.20.99
P2P Digital Currency
|
Serialization wrapper class for big-endian integers. More...
#include <serialize.h>
Public Member Functions | |
BigEndian (I &val) | |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
Protected Attributes | |
I & | m_val |
Serialization wrapper class for big-endian integers.
Use this wrapper around integer types 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.
Only 16-bit types are supported for now.
Definition at line 553 of file serialize.h.
Definition at line 558 of file serialize.h.
|
inline |
|
inline |
|
protected |
Definition at line 556 of file serialize.h.