Safe Haskell | None |
---|---|
Language | Haskell98 |
- elemSize :: SomeTypedArray e m -> Int
- class TypedArray a where
- unsafeIndex :: Int -> a -> IO (Elem a)
- index :: Int -> a -> IO (Elem a)
- unsafeSetIndex :: Int -> Elem a -> a -> IO ()
- setIndex :: Int -> Elem a -> a -> IO ()
- create :: Int -> IO a
- fromArray :: SomeJSArray m -> IO a
- fromArrayBuffer :: MutableArrayBuffer -> Int -> Maybe Int -> IO a
- indexOf :: Int -> Elem a -> a -> IO Int
- lastIndexOf :: Int -> Elem a -> a -> IO Int
- indexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- indexI16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int16#)
- indexI8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int8#)
- indexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word#)
- indexW16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word16#)
- indexW8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word8#)
- indexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#)
- unsafeIndexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- unsafeIndexI16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int16#)
- unsafeIndexI8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int8#)
- unsafeIndexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word#)
- unsafeIndexW16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word16#)
- unsafeIndexW8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word8#)
- unsafeIndexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#)
- int8ArrayFrom :: SomeJSArray m0 -> IO (SomeInt8Array m1)
- int16ArrayFrom :: SomeJSArray m0 -> IO (SomeInt16Array m1)
- int32ArrayFrom :: SomeJSArray m0 -> IO (SomeInt32Array m1)
- uint8ArrayFrom :: SomeJSArray m0 -> IO (SomeUint8Array m1)
- uint8ClampedArrayFrom :: SomeJSArray m0 -> IO (SomeUint8ClampedArray m1)
- uint16ArrayFrom :: SomeJSArray m0 -> IO (SomeUint16Array m1)
- uint32ArrayFrom :: SomeJSArray m0 -> IO (SomeUint32Array m1)
- float32ArrayFrom :: SomeJSArray m0 -> IO (SomeFloat32Array m1)
- float64ArrayFrom :: SomeJSArray m0 -> IO (SomeFloat64Array m1)
- setIndexI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- unsafeSetIndexI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- setIndexW :: (Mutability m ~ IsMutable) => Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- unsafeSetIndexW :: (Mutability m ~ IsMutable) => Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- setIndexD :: (Mutability m ~ IsMutable) => Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- unsafeSetIndexD :: (Mutability m ~ IsMutable) => Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- indexOfI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- indexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- indexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- lastIndexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- lastIndexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- length :: SomeTypedArray e m -> Int
- byteLength :: SomeTypedArray e m -> Int
- byteOffset :: SomeTypedArray e m -> Int
- buffer :: SomeTypedArray e m -> SomeArrayBuffer m
- subarray :: Int -> Int -> SomeTypedArray e m -> SomeTypedArray e m
- set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> IO ()
- unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> IO ()
- js_length :: SomeTypedArray e m -> Int
- js_byteLength :: SomeTypedArray e m -> Int
- js_byteOffset :: SomeTypedArray e m -> Int
- js_buffer :: SomeTypedArray e m -> SomeArrayBuffer m
- js_subarray :: Int -> Int -> SomeTypedArray e m -> SomeTypedArray e m
- js_set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 m1 -> State# s -> (#State# s, ()#)
- js_unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 m1 -> State# s -> (#State# s, ()#)
- js_elemSize :: SomeTypedArray e m -> Int
- js_indexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int##)
- js_indexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word##)
- js_indexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#)
- js_unsafeIndexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int##)
- js_unsafeIndexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word##)
- js_unsafeIndexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#)
- js_setIndexI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_setIndexW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_setIndexD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_unsafeSetIndexI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_unsafeSetIndexW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_unsafeSetIndexD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#)
- js_indexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_indexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_indexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_lastIndexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_lastIndexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#)
- js_createInt8Array :: Int -> State# s -> (#State# s, SomeInt8Array m#)
- js_createInt16Array :: Int -> State# s -> (#State# s, SomeInt16Array m#)
- js_createInt32Array :: Int -> State# s -> (#State# s, SomeInt32Array m#)
- js_createUint8ClampedArray :: Int -> State# s -> (#State# s, SomeUint8ClampedArray m#)
- js_createUint8Array :: Int -> State# s -> (#State# s, SomeUint8Array m#)
- js_createUint16Array :: Int -> State# s -> (#State# s, SomeUint16Array m#)
- js_createUint32Array :: Int -> State# s -> (#State# s, SomeUint32Array m#)
- js_createFloat32Array :: Int -> State# s -> (#State# s, SomeFloat32Array m#)
- js_createFloat64Array :: Int -> State# s -> (#State# s, SomeFloat64Array m#)
- js_int8ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt8Array m1)
- js_int16ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt16Array m1)
- js_int32ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt32Array m1)
- js_uint8ClampedArrayFromArray :: SomeJSArray m0 -> IO (SomeUint8ClampedArray m1)
- js_uint8ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint8Array m1)
- js_uint16ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint16Array m1)
- js_uint32ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint32Array m1)
- js_float32ArrayFromArray :: SomeJSArray m0 -> IO (SomeFloat32Array m1)
- js_float64ArrayFromArray :: SomeJSArray m0 -> IO (SomeFloat64Array m1)
- js_int8ArrayFromJSVal :: JSVal -> SomeInt8Array m
- js_int16ArrayFromJSVal :: JSVal -> SomeInt16Array m
- js_int32ArrayFromJSVal :: JSVal -> SomeInt32Array m
- js_uint8ClampedArrayFromJSVal :: JSVal -> SomeUint8ClampedArray m
- js_uint8ArrayFromJSVal :: JSVal -> SomeUint8Array m
- js_uint16ArrayFromJSVal :: JSVal -> SomeUint16Array m
- js_uint32ArrayFromJSVal :: JSVal -> SomeUint32Array m
- js_float32ArrayFromJSVal :: JSVal -> SomeFloat32Array m
- js_float64ArrayFromJSVal :: JSVal -> SomeFloat64Array m
Documentation
class TypedArray a where Source
unsafeIndex :: Int -> a -> IO (Elem a) Source
index :: Int -> a -> IO (Elem a) Source
unsafeSetIndex :: Int -> Elem a -> a -> IO () Source
setIndex :: Int -> Elem a -> a -> IO () Source
fromArray :: SomeJSArray m -> IO a Source
fromArrayBuffer :: MutableArrayBuffer -> Int -> Maybe Int -> IO a Source
indexOf :: Int -> Elem a -> a -> IO Int Source
lastIndexOf :: Int -> Elem a -> a -> IO Int Source
int8ArrayFrom :: SomeJSArray m0 -> IO (SomeInt8Array m1) Source
int16ArrayFrom :: SomeJSArray m0 -> IO (SomeInt16Array m1) Source
int32ArrayFrom :: SomeJSArray m0 -> IO (SomeInt32Array m1) Source
uint8ArrayFrom :: SomeJSArray m0 -> IO (SomeUint8Array m1) Source
uint8ClampedArrayFrom :: SomeJSArray m0 -> IO (SomeUint8ClampedArray m1) Source
uint16ArrayFrom :: SomeJSArray m0 -> IO (SomeUint16Array m1) Source
uint32ArrayFrom :: SomeJSArray m0 -> IO (SomeUint32Array m1) Source
float32ArrayFrom :: SomeJSArray m0 -> IO (SomeFloat32Array m1) Source
float64ArrayFrom :: SomeJSArray m0 -> IO (SomeFloat64Array m1) Source
setIndexI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
unsafeSetIndexI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
setIndexW :: (Mutability m ~ IsMutable) => Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
unsafeSetIndexW :: (Mutability m ~ IsMutable) => Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
setIndexD :: (Mutability m ~ IsMutable) => Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
unsafeSetIndexD :: (Mutability m ~ IsMutable) => Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source
indexOfI :: (Mutability m ~ IsMutable) => Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source
byteLength :: SomeTypedArray e m -> Int Source
length of the array in bytes
byteOffset :: SomeTypedArray e m -> Int Source
offset of the array in the buffer
subarray :: Int -> Int -> SomeTypedArray e m -> SomeTypedArray e m Source
create a view of the existing array
set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> IO () Source
copy the elements of one typed array to another
js_byteLength :: SomeTypedArray e m -> Int Source
js_byteOffset :: SomeTypedArray e m -> Int Source
js_subarray :: Int -> Int -> SomeTypedArray e m -> SomeTypedArray e m Source
js_unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 m1 -> State# s -> (#State# s, ()#) Source
js_elemSize :: SomeTypedArray e m -> Int Source
js_createInt8Array :: Int -> State# s -> (#State# s, SomeInt8Array m#) Source
js_createInt16Array :: Int -> State# s -> (#State# s, SomeInt16Array m#) Source
js_createInt32Array :: Int -> State# s -> (#State# s, SomeInt32Array m#) Source
js_createUint8ClampedArray :: Int -> State# s -> (#State# s, SomeUint8ClampedArray m#) Source
js_createUint8Array :: Int -> State# s -> (#State# s, SomeUint8Array m#) Source
js_createUint16Array :: Int -> State# s -> (#State# s, SomeUint16Array m#) Source
js_createUint32Array :: Int -> State# s -> (#State# s, SomeUint32Array m#) Source
js_createFloat32Array :: Int -> State# s -> (#State# s, SomeFloat32Array m#) Source
js_createFloat64Array :: Int -> State# s -> (#State# s, SomeFloat64Array m#) Source
js_int8ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt8Array m1) Source
js_int16ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt16Array m1) Source
js_int32ArrayFromArray :: SomeJSArray m0 -> IO (SomeInt32Array m1) Source
js_uint8ClampedArrayFromArray :: SomeJSArray m0 -> IO (SomeUint8ClampedArray m1) Source
js_uint8ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint8Array m1) Source
js_uint16ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint16Array m1) Source
js_uint32ArrayFromArray :: SomeJSArray m0 -> IO (SomeUint32Array m1) Source
js_float32ArrayFromArray :: SomeJSArray m0 -> IO (SomeFloat32Array m1) Source
js_float64ArrayFromArray :: SomeJSArray m0 -> IO (SomeFloat64Array m1) Source
js_int8ArrayFromJSVal :: JSVal -> SomeInt8Array m Source
js_int16ArrayFromJSVal :: JSVal -> SomeInt16Array m Source
js_int32ArrayFromJSVal :: JSVal -> SomeInt32Array m Source
js_uint8ClampedArrayFromJSVal :: JSVal -> SomeUint8ClampedArray m Source
js_uint8ArrayFromJSVal :: JSVal -> SomeUint8Array m Source
js_uint16ArrayFromJSVal :: JSVal -> SomeUint16Array m Source
js_uint32ArrayFromJSVal :: JSVal -> SomeUint32Array m Source
js_float32ArrayFromJSVal :: JSVal -> SomeFloat32Array m Source
js_float64ArrayFromJSVal :: JSVal -> SomeFloat64Array m Source