Main result #
Introduce main properties of Up
(well-ordered relation for "upwards" induction on ℕ
) and of
ByteArray
This entire file has been deprecated on 2024-08-19 in favour of ByteSubarray
in Batteries.
A terminal byte slice, a suffix of a byte array.
Instances For
The number of elements in the byte slice.
Instances For
Index into a byte slice. The getOp
function allows the use of the buf[i]
notation.
Instances For
Convert a byte array into a terminal slice.
Equations
- arr.toSliceT = { arr := arr, off := 0 }
Instances For
Convert a byte slice into an array, by copying the data if necessary.
Equations
- { arr := arr, off := off, len := len }.toArray = arr.extract off len
Instances For
The inner loop of the forIn
implementation for byte slices.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Convert a terminal byte slice into a regular byte slice.
Instances For
Convert a byte array into a byte slice.
Equations
- arr.toSlice = { arr := arr, off := 0, len := arr.size }
Instances For
Convert a byte slice into a string. This does not handle non-ASCII characters correctly: every byte will become a unicode character with codepoint < 256.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.