[#CustomUintFormatter]
= CustomUintFormatter
:mrdocs:

Serialization wrapper class for custom integers and enums&period;

== Synopsis

Declared in `&lt;serialize&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int Bytes,
    bool BigEndian = false&gt;
struct CustomUintFormatter;
----

== Description

It permits specifying the serialized size (1 to 8 bytes) and endianness&period;

Use the big endian mode for values that are stored in memory in native byte order, but serialized in big endian notation&period; This is only intended to implement serializers that are compatible with existing formats, and its use is not recommended for new data structures&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CustomUintFormatter/Ser.adoc[`Ser`] 
| Serialize an integer using the configured byte width and endianness&period;
| xref:CustomUintFormatter/Unser.adoc[`Unser`] 
| Unserialize an integer using the configured byte width and endianness&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CustomUintFormatter/MAX.adoc[`MAX`] 
| The largest value representable in the configured number of bytes&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
