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)
#genFloat32 Source
genFloat32 :: forall m. MonadGen m => m Float32
#genFloat64 Source
genFloat64 :: forall m. MonadGen m => m Number
#WithIndices Source
data WithIndices :: ArrayViewType -> Type
data WithIndices a
For generating some set of offsets residing inside the generated array
Constructors
WithIndices (Array Index) (ArrayView a)
#genWithIndices Source
genWithIndices :: forall m a. MonadGen m => BytesPerType a => Int -> m (ArrayView a) -> m (WithIndices a)