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.
@[deprecated "No deprecation message was provided." (since := "2024-08-19")]
A terminal byte slice, a suffix of a byte array.
Instances For
@[inline]
The number of elements in the byte slice.
Instances For
Convert a byte array into a terminal slice.
Instances For
@[irreducible, deprecated "No deprecation message was provided." (since := "2024-08-19")]
def
ByteSlice.forIn.loop
{m : Type u → Type v}
{β : Type u}
[Monad m]
(f : UInt8 → β → m (ForInStep β))
(arr : ByteArray)
(off _end i : Nat)
(b : β)
:
m β
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 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.