tomo/docs/bytes.md

13 lines
450 B
Markdown
Raw Normal View History

2024-09-15 14:00:25 -07:00
# 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)`.
2024-09-15 14:00:25 -07:00
# Byte Methods
2024-11-03 19:37:48 -08:00
None.