const-0: Read-only mutable primitives

Copyright(c) 2019 Edward Kmett
LicenseBSD-2-Clause OR Apache-2.0
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Const.Primitive.PrimArray

Description

 

Documentation

data ConstPrimArray s a Source #

Instances
Constable (ConstPrimArray s :: Type -> Type) (ConstPrimArray s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Constable (ConstPrimArray s :: Type -> Type) (MutablePrimArray s :: Type -> Type) Source # 
Instance details

Defined in Data.Const.Unsafe

Eq (ConstPrimArray s a) Source # 
Instance details

Defined in Data.Const.Unsafe

readAPrimArray :: forall a m p. (Prim a, PrimMonad m, APrimArray (PrimState m) p) => p a -> Int -> m a Source #

samePrimArray :: forall s a p q. (APrimArray s p, APrimArray s q) => p a -> q a -> Bool Source #

copyAPrimArray :: forall m a p. (Prim a, PrimMonad m, APrimArray (PrimState m) p) => MutablePrimArray (PrimState m) a -> Int -> p a -> Int -> Int -> m () Source #

copyAPrimArrayToPtr :: forall m a p. (Prim a, PrimMonad m, APrimArray (PrimState m) p) => Ptr a -> p a -> Int -> Int -> m () Source #

sizeofAPrimArray :: forall s a p. (Prim a, APrimArray s p) => p a -> Int Source #

getSizeofAPrimArray :: forall m a p. (Prim a, PrimMonad m, APrimArray (PrimState m) p) => p a -> m Int Source #