1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Byte 3 2025-11-29 "Tomo man-pages"
.SH NAME
Byte \- a Tomo type
.SH LIBRARY
Tomo Standard Library
.fi
.SH METHODS
.TP
.BI Byte.get_bit\ :\ func(i:\ Byte,\ bit_index:\ Int\ ->\ Bool)
In the binary representation of a byte, check whether a given bit index is set to 1 or not.
For more, see:
.BR Tomo-Byte.get_bit (3)
.TP
.BI Byte.hex\ :\ func(byte:\ Byte,\ uppercase:\ Bool\ =\ yes,\ prefix:\ Bool\ =\ no\ ->\ Text)
Convert a byte to a hexidecimal text representation.
For more, see:
.BR Tomo-Byte.hex (3)
.TP
.BI Byte.is_between\ :\ func(x:\ Byte,\ low:\ Byte,\ high:\ Byte\ ->\ Bool)
Determines if an integer is between two numbers (inclusive).
For more, see:
.BR Tomo-Byte.is_between (3)
.TP
.BI Byte.parse\ :\ func(text:\ Text,\ remainder:\ &Text?\ =\ none\ ->\ Byte?)
Parse a byte literal from text.
For more, see:
.BR Tomo-Byte.parse (3)
.TP
.BI Byte.to\ :\ func(first:\ Byte,\ last:\ Byte,\ step:\ Byte?\ =\ none\ ->\ func(->Byte?))
Returns an iterator function that iterates over the range of bytes specified.
For more, see:
.BR Tomo-Byte.to (3)
|