ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.TypedArray.Internal

Synopsis

Documentation

elemSize :: SomeTypedArray e m -> Int Source

class TypedArray a where Source

Methods

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

create :: Int -> IO a 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

indexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

indexI16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int16#) Source

indexI8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int8#) Source

indexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word#) Source

indexW16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word16#) Source

indexW8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word8#) Source

indexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#) Source

unsafeIndexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

unsafeIndexI16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int16#) Source

unsafeIndexI8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int8#) Source

unsafeIndexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word#) Source

unsafeIndexW16 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word16#) Source

unsafeIndexW8 :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word8#) Source

unsafeIndexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#) 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

indexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

indexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

lastIndexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

lastIndexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

length :: SomeTypedArray e m -> Int Source

length of the typed array in elements

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

buffer :: SomeTypedArray e m -> SomeArrayBuffer m Source

the underlying buffer of the array #

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

unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 Mutable -> IO () Source

js_length :: SomeTypedArray e m -> Int Source

js_byteLength :: SomeTypedArray e m -> Int Source

js_byteOffset :: SomeTypedArray e m -> Int Source

js_buffer :: SomeTypedArray e m -> SomeArrayBuffer m Source

js_subarray :: Int -> Int -> SomeTypedArray e m -> SomeTypedArray e m Source

js_set :: Int -> SomeTypedArray e m -> SomeTypedArray e1 m1 -> State# s -> (#State# s, ()#) Source

js_unsafeSet :: Int -> SomeTypedArray e m -> SomeTypedArray e1 m1 -> State# s -> (#State# s, ()#) Source

js_elemSize :: SomeTypedArray e m -> Int Source

js_indexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int##) Source

js_indexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word##) Source

js_indexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#) Source

js_unsafeIndexI :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Int##) Source

js_unsafeIndexW :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Word##) Source

js_unsafeIndexD :: Int -> SomeTypedArray e m -> State# s -> (#State# s, Double#) Source

js_setIndexI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_setIndexW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_setIndexD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_unsafeSetIndexI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_unsafeSetIndexW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_unsafeSetIndexD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, ()#) Source

js_indexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

js_indexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

js_indexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

js_lastIndexOfI :: Int -> Int# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

js_lastIndexOfW :: Int -> Word# -> SomeTypedArray e m -> State# s -> (#State# s, Int#) Source

js_lastIndexOfD :: Int -> Double -> SomeTypedArray e m -> State# s -> (#State# s, 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