code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(12 lines)

Byte Values

Byte values have the type Byte, which corresponds to an unsigned 8-bit integer ranging from 0 to 255. It is generally recommended to use Int8 instead of Byte when performing math operations, however, Bytes are used in API methods for Text and Path that deal with raw binary data, such as Path.read_bytes() and Text.utf8(). Byte literals can be written using the Byte() constructor: Byte(5).

API

API documentation

1 # Byte Values
3 Byte values have the type `Byte`, which corresponds to an unsigned 8-bit
4 integer ranging from 0 to 255. It is generally recommended to use `Int8`
5 instead of `Byte` when performing math operations, however, `Byte`s are used in
6 API methods for `Text` and `Path` that deal with raw binary data, such as
7 `Path.read_bytes()` and `Text.utf8()`. Byte literals can be written using
8 the `Byte()` constructor: `Byte(5)`.
10 # API
12 [API documentation](../api/bytes.md)