Data Types

mediumInt

Supported By

Descriptors

Description

The mediumInt data type is a chunk type of binary that represents a 32-bit integer at a particular offset in the parent binary.

Notes

The chunks of a binary are numbered starting at zero. This is one of the very few instances of zero-based indexing in XION, as most indexes start at 1.

Accessing a mediumInt chunk that is out of range returns zero. Modifying a mediumInt chunk that is out of range inserts as many zero bytes as necessary to insert data at the appropriate offset in the parent binary.

The signedness and endianness of the mediumInt are determined by the unsigned and littleEndian global properties.

Synonym

medInt