![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
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 444 of file serialize.h.
Definition at line 449 of file serialize.h.
|
inline |
|
inline |
|
protected |
Definition at line 447 of file serialize.h.