eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
Loading...
Searching...
No Matches
eolib::data::EoNumericLimits Struct Reference

Maximum values (exclusive) of the EO encoded numeric types. More...

#include <eolib/data/eo_numeric_limits.hpp>

Static Public Attributes

static constexpr unsigned int CharMax = 253
 The maximum value of an EO char (1-byte encoded integer).
static constexpr unsigned int ShortMax = CharMax * CharMax
 The maximum value of an EO short (2-byte encoded integer).
static constexpr unsigned int ThreeMax = CharMax * CharMax * CharMax
 The maximum value of an EO three (3-byte encoded integer).
static constexpr unsigned int IntMax = ShortMax * ShortMax
 The maximum value of an EO int (4-byte encoded integer).

Detailed Description

Maximum values (exclusive) of the EO encoded numeric types.

The largest valid value for each type is TypeMax - 1.

Member Data Documentation

◆ CharMax

unsigned int eolib::data::EoNumericLimits::CharMax = 253
staticconstexpr

The maximum value of an EO char (1-byte encoded integer).

◆ ShortMax

unsigned int eolib::data::EoNumericLimits::ShortMax = CharMax * CharMax
staticconstexpr

The maximum value of an EO short (2-byte encoded integer).

◆ ThreeMax

unsigned int eolib::data::EoNumericLimits::ThreeMax = CharMax * CharMax * CharMax
staticconstexpr

The maximum value of an EO three (3-byte encoded integer).

◆ IntMax

unsigned int eolib::data::EoNumericLimits::IntMax = ShortMax * ShortMax
staticconstexpr

The maximum value of an EO int (4-byte encoded integer).