A byte slice represents a range of bytes in a bytesstd/core/types/bytes: V type.
O(1). Advance the start position of a byte slice by count bytes
up to the end of the byte array.
A negative count advances the start position backwards up to index 0.
O(1). Return the byte slice from the end of the slicestd/core/bslice/slice: (b : bytes) -> bslice argument
to the end of the byte array.
O(1). Return the byte slice from the start of the bytes up to the
start of the slicestd/core/bslice/slice: (b : bytes) -> bslice argument.
Get the bytes referenced by the slice.
O(1). Drop the first n bytes of the slice. Identity for n(<=)std/core/int/(<=): (x : int, y : int) -> bool0.
An empty byte slice.
O(1). Extend a byte slice range by count bytes up to the end of the byte slice.
A negative count shrinks the slice up to the empty slice.
View of the first n bytes.
Is a slice empty?
View of the last n bytes.
If the slice is not empty, return the first byte, and a new slice that is advanced by 1.
Create a byte slice from bytes.
O(1). Get a subslice of len bytes from start in a given byte slice.
O(1). Take the first n bytes of the slice.
Truncates a slice to length 0.
Byte slices
Todo: add iteration (foreach, prev, next etc).