put byte 12 of steve into bill
put byte 2 through 7 of steve into bill
put the fifth byte of steve into bill
put the third through eighth byte of steve into bill
The byte
data type is a chunk type of binary
that represents a single byte or range of bytes.
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 byte
chunk that is out of range returns empty
. Modifying a byte
chunk that is out of range inserts as many zero bytes as necessary to insert data at the appropriate offset in the parent binary
.