EoNumericLimits
in package
Defines the numeric limits for different types of EO data sizes.
This file contains constant definitions for the maximum values that various EO data types can hold, based on their byte length. Each constant represents the maximum value that can be represented by a sequence of bytes up to the size of the respective type in the EO protocol. These limits are used throughout the EO system to ensure data integrity and proper range checking.
Table of Contents
Constants
- EO_CHAR_MAX = 253
- The maximum value that can be represented by a single byte (unsigned).
- EO_INT_MAX = self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX
- The maximum value that can be represented by four bytes (unsigned).
- EO_SHORT_MAX = self::EO_CHAR_MAX * self::EO_CHAR_MAX
- The maximum value that can be represented by two bytes (unsigned).
- EO_THREE_MAX = self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX
- The maximum value that can be represented by three bytes (unsigned).
Constants
EO_CHAR_MAX
The maximum value that can be represented by a single byte (unsigned).
public
int
EO_CHAR_MAX
= 253
EO_INT_MAX
The maximum value that can be represented by four bytes (unsigned).
public
int
EO_INT_MAX
= self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX
EO_SHORT_MAX
The maximum value that can be represented by two bytes (unsigned).
public
int
EO_SHORT_MAX
= self::EO_CHAR_MAX * self::EO_CHAR_MAX
EO_THREE_MAX
The maximum value that can be represented by three bytes (unsigned).
public
int
EO_THREE_MAX
= self::EO_CHAR_MAX * self::EO_CHAR_MAX * self::EO_CHAR_MAX