Module

Data.ArrayBuffer.Typed.Gen

Package
purescript-arraybuffer
Repository
purescript-contrib/purescript-arraybuffer

Functions for generating typed arrays and values.

#genTypedArray Source

genTypedArray :: forall m a t. MonadGen m => TypedArray a t => m t -> m (ArrayView a)

#genUint8 Source

genUint8 :: forall m. MonadGen m => m UInt

#genInt8 Source

genInt8 :: forall m. MonadGen m => m Int

#genUint16 Source

genUint16 :: forall m. MonadGen m => m UInt

#genInt16 Source

genInt16 :: forall m. MonadGen m => m Int

#genUint32 Source

genUint32 :: forall m. MonadGen m => m UInt

#genInt32 Source

genInt32 :: forall m. MonadGen m => m Int

#genFloat32 Source

genFloat32 :: forall m. MonadGen m => m Float32

#genFloat64 Source

genFloat64 :: forall m. MonadGen m => m Number

#WithIndices Source

data WithIndices :: ArrayViewType -> Typedata WithIndices a

For generating some set of offsets residing inside the generated array

Constructors

#genWithIndices Source

genWithIndices :: forall m a. MonadGen m => BytesPerType a => Int -> m (ArrayView a) -> m (WithIndices a)