Safe Haskell | None |
---|---|
Language | Haskell2010 |
- elemSize :: SomeTypedArray e m -> GHCJSPure Int
- class TypedArray a where
- indexI :: Int -> SomeTypedArray e m -> JSM Int
- indexI16 :: Int -> SomeTypedArray e m -> JSM Int16
- indexI8 :: Int -> SomeTypedArray e m -> JSM Int8
- indexW :: Int -> SomeTypedArray e m -> JSM Word
- indexW16 :: Int -> SomeTypedArray e m -> JSM Word16
- indexW8 :: Int -> SomeTypedArray e m -> JSM Word8
- indexD :: Int -> SomeTypedArray e m -> JSM Double
- unsafeIndexI :: Int -> SomeTypedArray e m -> JSM Int
- unsafeIndexI16 :: Int -> SomeTypedArray e m -> JSM Int16
- unsafeIndexI8 :: Int -> SomeTypedArray e m -> JSM Int8
- unsafeIndexW :: Int -> SomeTypedArray e m -> JSM Word
- unsafeIndexW16 :: Int -> SomeTypedArray e m -> JSM Word16
- unsafeIndexW8 :: Int -> SomeTypedArray e m -> JSM Word8
- unsafeIndexD :: Int -> SomeTypedArray e m -> JSM Double
- int8ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt8Array m1)
- int16ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt16Array m1)
- int32ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt32Array m1)
- uint8ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint8Array m1)
- uint8ClampedArrayFrom :: SomeJSArray m0 -> JSM (SomeUint8ClampedArray m1)
- uint16ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint16Array m1)
- uint32ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint32Array m1)
- float32ArrayFrom :: SomeJSArray m0 -> JSM (SomeFloat32Array m1)
- float64ArrayFrom :: SomeJSArray m0 -> JSM (SomeFloat64Array m1)
- setIndexI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM ()
- unsafeSetIndexI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM ()
- setIndexW :: Mutability m ~ IsMutable => Int -> Word -> SomeTypedArray e m -> JSM ()
- unsafeSetIndexW :: Mutability m ~ IsMutable => Int -> Word -> SomeTypedArray e m -> JSM ()
- setIndexD :: Mutability m ~ IsMutable => Int -> Double -> SomeTypedArray e m -> JSM ()
- unsafeSetIndexD :: Mutability m ~ IsMutable => Int -> Double -> SomeTypedArray e m -> JSM ()
- indexOfI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM Int
- indexOfW :: Int -> Word -> SomeTypedArray e m -> JSM Int
- indexOfD :: Int -> Double -> SomeTypedArray e m -> JSM Int
- lastIndexOfI :: Int -> Int -> SomeTypedArray e m -> JSM Int
- lastIndexOfW :: Int -> Word -> SomeTypedArray e m -> JSM Int
- lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> JSM Int
- length :: SomeTypedArray e m -> GHCJSPure Int
- byteLength :: SomeTypedArray e m -> GHCJSPure Int
- byteOffset :: SomeTypedArray e m -> GHCJSPure Int
- buffer :: SomeTypedArray e m -> GHCJSPure (SomeArrayBuffer m)
- subarray :: Int -> Int -> SomeTypedArray e m -> GHCJSPure (SomeTypedArray e m)
- set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> GHCJSPure ()
- unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> GHCJSPure ()
Documentation
class TypedArray a where Source #
unsafeIndex, index, unsafeSetIndex, setIndex, create, fromArray, fromArrayBuffer, indexOf, lastIndexOf
unsafeIndex :: Int -> a -> JSM (Elem a) Source #
index :: Int -> a -> JSM (Elem a) Source #
unsafeSetIndex :: Int -> Elem a -> a -> JSM () Source #
setIndex :: Int -> Elem a -> a -> JSM () Source #
create :: Int -> JSM a Source #
fromArray :: SomeJSArray m -> JSM a Source #
fromArrayBuffer :: MutableArrayBuffer -> Int -> Maybe Int -> JSM a Source #
unsafeIndexI :: Int -> SomeTypedArray e m -> JSM Int Source #
unsafeIndexI16 :: Int -> SomeTypedArray e m -> JSM Int16 Source #
unsafeIndexI8 :: Int -> SomeTypedArray e m -> JSM Int8 Source #
unsafeIndexW :: Int -> SomeTypedArray e m -> JSM Word Source #
unsafeIndexW16 :: Int -> SomeTypedArray e m -> JSM Word16 Source #
unsafeIndexW8 :: Int -> SomeTypedArray e m -> JSM Word8 Source #
unsafeIndexD :: Int -> SomeTypedArray e m -> JSM Double Source #
int8ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt8Array m1) Source #
int16ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt16Array m1) Source #
int32ArrayFrom :: SomeJSArray m0 -> JSM (SomeInt32Array m1) Source #
uint8ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint8Array m1) Source #
uint8ClampedArrayFrom :: SomeJSArray m0 -> JSM (SomeUint8ClampedArray m1) Source #
uint16ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint16Array m1) Source #
uint32ArrayFrom :: SomeJSArray m0 -> JSM (SomeUint32Array m1) Source #
float32ArrayFrom :: SomeJSArray m0 -> JSM (SomeFloat32Array m1) Source #
float64ArrayFrom :: SomeJSArray m0 -> JSM (SomeFloat64Array m1) Source #
setIndexI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM () Source #
unsafeSetIndexI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM () Source #
setIndexW :: Mutability m ~ IsMutable => Int -> Word -> SomeTypedArray e m -> JSM () Source #
unsafeSetIndexW :: Mutability m ~ IsMutable => Int -> Word -> SomeTypedArray e m -> JSM () Source #
setIndexD :: Mutability m ~ IsMutable => Int -> Double -> SomeTypedArray e m -> JSM () Source #
unsafeSetIndexD :: Mutability m ~ IsMutable => Int -> Double -> SomeTypedArray e m -> JSM () Source #
indexOfI :: Mutability m ~ IsMutable => Int -> Int -> SomeTypedArray e m -> JSM Int Source #
lastIndexOfI :: Int -> Int -> SomeTypedArray e m -> JSM Int Source #
lastIndexOfW :: Int -> Word -> SomeTypedArray e m -> JSM Int Source #
lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> JSM Int Source #
byteLength :: SomeTypedArray e m -> GHCJSPure Int Source #
length of the array in bytes
byteOffset :: SomeTypedArray e m -> GHCJSPure Int Source #
offset of the array in the buffer
buffer :: SomeTypedArray e m -> GHCJSPure (SomeArrayBuffer m) Source #
the underlying buffer of the array
subarray :: Int -> Int -> SomeTypedArray e m -> GHCJSPure (SomeTypedArray e m) Source #
create a view of the existing array
set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> GHCJSPure () Source #
copy the elements of one typed array to another
unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> GHCJSPure () Source #