aboutsummaryrefslogtreecommitdiff
path: root/docs/bytes.md
blob: 196d57622044ae54596112c7457347442d249df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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, `Byte`s are used in
API methods for `Text` and `Path` that deal with raw binary data, such as
`Path.read_bytes()` and `Text.bytes()`. Byte literals can be written using
the `Byte()` constructor: `Byte(5)`.

# API

[API documentation](../api/bytes.md)