llm
Download
51 lines 1.1 KiBGroffModified 2026-03-09 raw
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH Byte 3 2026-03-08 "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,\ base:\ Int?\ =\ none,\ 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:\ Int8?\ =\ none\ ->\ func(->Byte?))
Returns an iterator function that iterates over the range of bytes specified. 

For more, see:
.BR Tomo-Byte.to (3)