array package:byteslice
Create a slice of
Bytes that spans the entire argument array.
Create a slice of
Bytes that spans the entire
PrimArray
of 8-bit words.
Convert the sliced
Bytes to an unsliced
ByteArray. This
reuses the array backing the sliced
Bytes if the slicing
metadata implies that all of the bytes are used. Otherwise, it makes a
copy.
Variant of
toByteArray that unconditionally makes a copy of the
array backing the sliced
Bytes even if the original array could
be reused. Prefer
toByteArray.
Deprecated: use Data.BytesTextAsciiExt.toLowerU
Convert the sliced
Bytes to an unsliced
ByteArray. This
reuses the array backing the sliced
Bytes if the slicing
metadata implies that all of the bytes are used and they are already
pinned. Otherwise, it makes a copy.
Variant of
fromBytes where the single chunk is unsliced.
A
ByteArray whose compile-time-known length is represented by a
phantom type variable. Consumers of this data constructor must be
careful to preserve the expected invariant.
Create a slice of
MutableBytes that spans the entire argument
array. This aliases the argument.
A
ByteArray whose compile-time-known length is represented by a
phantom type variable. Consumers of this data constructor must be
careful to preserve the expected invariant.