put tinyInt 12 of steve into bill
put the fifth tinyInt of steve into bill
The tinyInt
data type is a chunk type of binary
that represents an 8-bit integer at a particular offset in the parent binary
.
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 tinyInt
chunk that is out of range returns zero
. Modifying a tinyInt
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 tinyInt
are determined by the unsigned
and littleEndian
global properties.