[#VarIntMode] = VarIntMode :mrdocs: Mode for encoding VarInts. == Synopsis Declared in `<serialize.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class VarIntMode : int; ---- == Description Currently there is no support for signed encodings. The default mode will not compile with signed values, and the legacy "nonnegative signed" mode will accept signed values, but improperly encode and decode them if they are negative. In the future, the DEFAULT mode could be extended to support negative numbers in a backwards compatible way, and additional modes could be added to support different varint formats (e.g. zigzag encoding). == Members [cols="1,4"] |=== | Name| Description | `DEFAULT` | Requires an unsigned type; the standard VarInt encoding. | `NONNEGATIVE_SIGNED` | Legacy mode accepting signed types, valid only for non‐negative values. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#