mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 19:50:43 +02:00
Add comments to CustomUintFormatter
This commit is contained in:
parent
4eb5643e35
commit
f9ee0f37c2
@ -520,6 +520,15 @@ struct VarIntFormatter
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** 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.
|
||||||
|
*/
|
||||||
template<int Bytes, bool BigEndian = false>
|
template<int Bytes, bool BigEndian = false>
|
||||||
struct CustomUintFormatter
|
struct CustomUintFormatter
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user