|
| Data.Primitive.ByteArray | | Portability | non-portable | | Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
|
|
|
| Description |
| Primitive operations on ByteArrays
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
|
|
| data MutableByteArray s | Source |
|
| Mutable byte arrays associated with a primitive state token
| | Constructors | |
|
|
| ByteArray# |
|
| MutableByteArray# |
|
|
| Create a new mutable byte array of the specified size.
|
|
|
| Create a pinned byte array of the specified size. The garbage collector
is guaranteed not to move it.
|
|
|
| Create a pinned byte array of the specified size and with the give
alignment. The garbage collector is guaranteed not to move it.
|
|
|
| Read a primitive value from the byte array. The offset is given in
elements of type a rather than in bytes.
|
|
|
| Write a primitive value to the byte array. The offset is given in
elements of type a rather than in bytes.
|
|
|
| Read a primitive value from the byte array. The offset is given in
elements of type a rather than in bytes.
|
|
|
| Convert a mutable byte array to an immutable one without copying. The
array should not be modified after the conversion.
|
|
|
| Size of the byte array.
|
|
|
| Size of the mutable byte array.
|
|
|
| Check if the two arrays refer to the same memory block.
|
|
|
| Yield a pointer to the array's data. This operation is only safe on
pinned byte arrays allocated by newPinnedByteArray or
newAlignedPinnedByteArray.
|
|
|
|
|
|
|
|
|
|
| Produced by Haddock version 2.6.0 |