Portability | non-portable |
---|---|
Stability | experimental |
Maintainer | Roman Leshchinskiy <[email protected]> |
Data.Vector.Unboxed.Unbox
Description
Primitives for manipulating unboxed arrays
Documentation
Class of types which can be stored in unboxed arrays
Methods
Yield the size in bytes of a ByteArray#
which can store n
elements
at# :: ByteArray# -> Int# -> aSource
Indexing
read# :: MutableByteArray# s -> Int# -> State# s -> (#State# s, a#)Source
Yield the element at the given position
write# :: MutableByteArray# s -> Int# -> a -> State# s -> State# sSource
Store the given element at the given position