|
GHC.Unboxed | Portability | GHC | Stability | experimental | Maintainer | Bulat Ziganshin <Bulat.Ziganshin@gmail.com> |
|
|
|
Description |
Unboxed values (simple datatypes that can be stored in ByteArrays,
i.e. raw memory buffers allocated inside the Haskell heap)
Based on the idea of Oleg Kiselyov
(see http:www.haskell.orgpipermailhaskell-cafe2004-July006400.html)
|
|
Synopsis |
|
|
|
Documentation |
|
|
That's all we need to unify ST and IO operations!
| | Methods | mLift :: (State# s -> (#State# s, a#)) -> m a | Source |
|
| | Instances | |
|
|
type IOSpecific a = a RealWorld | Source |
|
Type functions which converts universal ST or IO types to IO-specific ones
|
|
type IOSpecific2 a = a RealWorld | Source |
|
|
type IOSpecific3 a = a RealWorld | Source |
|
|
|
Immutable and mutable byte vectors
| Constructors | |
|
|
|
Constructors | MUVec (MutableByteArray# s) | |
|
|
|
|
Alloc the mutable byte vector
|
|
|
Mutable->immutable byte vector on-place conversion
|
|
|
Immutable->mutable byte vector on-place conversion
|
|
|
Mutable->immutable byte vector conversion which takes a copy of contents
|
|
|
Immutable->mutable byte vector conversion which takes a copy of contents
|
|
|
Recast immutable unboxed vector
|
|
|
Recast mutable unboxed vector
|
|
|
|
memcpy :: MutableByteArray# RealWorld -> ByteArray# -> Int# -> IO () | Source |
|
|
class Unboxed value where | Source |
|
Unboxed is like Storable, but values are stored in byte vectors (i.e. inside the Haskell heap)
| | Methods | | Read the value from mutable byte vector at given index
| | | Write the value to mutable byte vector at given index
| | | Read the value from immutable byte vector at given index
| | | How many bytes required to represent values of this type
|
| | Instances | |
|
|
Produced by Haddock version 2.1.0 |