@[instance_reducible]
Equations
uget/uset #
empty #
push #
set #
copySlice #
append #
extract #
ofFn #
@[simp]
map/mapM #
@[inline]
unsafe def ByteArray.mapMUnsafe {m : Type → Type u_1} [Monad m] (a : ByteArray) (f : UInt8 → m UInt8) :
Unsafe optimized implementation of mapM.
This function is unsafe because it relies on the implementation limit that the size of an array is
always less than USize.size.
Equations
- a.mapMUnsafe f = ByteArray.mapMUnsafe.loop✝ f a 0 a.usize