Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
CustomUintFormatter< Bytes, BigEndian > Struct Template Reference

Serialization wrapper class for custom integers and enums. More...

#include <serialize.h>

Detailed Description

template<int Bytes, bool BigEndian = false>
struct CustomUintFormatter< Bytes, BigEndian >

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 508 of file serialize.h.


The documentation for this struct was generated from the following file: