Test whether a byte slice is empty.
Equations
Instances For
Returns the subslice obtained by removing the last element.
Equations
Instances For
Returns the subslice obtained by removing the first element.
Equations
Instances For
Folds a monadic function over a ByteSubarray from left to right.
Equations
Instances For
A subarray of a ByteArray.
- array : ByteArray
O(1). Get data array of aByteSubarray. - start : Nat
O(1). Get start index of aByteSubarray. - stop : Nat
O(1). Get stop index of aByteSubarray. Start index is before stop index.
Stop index is before end of data array.
Instances For
O(1). Get the size of a ByteSubarray.
Equations
Instances For
O(1). Test if a ByteSubarray is empty.
Equations
Instances For
O(n). Extract a ByteSubarray to a ByteArray.
Equations
Instances For
O(1). Get the element at index i from the start of a ByteSubarray.
Equations
Instances For
Equations
O(1). Pop the last element of a ByteSubarray.
Equations
Instances For
O(1). Pop the first element of a ByteSubarray.
Equations
Instances For
Folds a monadic function over a ByteSubarray from left to right.
Equations
Instances For
Folds a function over a ByteSubarray from left to right.
Equations
Instances For
Implementation of forIn for a ByteSubarray.
Equations
Instances For
Inner loop of the forIn implementation for ByteSubarray.
Equations
Instances For
Equations
O(1). Coerce a byte array into a byte slice.