Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
- type Int8Array = SomeInt8Array Immutable
- type Int16Array = SomeInt16Array Immutable
- type Int32Array = SomeInt32Array Immutable
- type Uint8Array = SomeUint8Array Immutable
- type Uint16Array = SomeUint16Array Immutable
- type Uint32Array = SomeUint32Array Immutable
- type Uint8ClampedArray = SomeUint8ClampedArray Immutable
- type Float32Array = SomeFloat32Array Immutable
- type Float64Array = SomeFloat64Array Immutable
- 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 ()
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
type Int16Array = SomeInt16Array Immutable Source
type Int32Array = SomeInt32Array Immutable Source
type Uint8Array = SomeUint8Array Immutable Source
type Uint16Array = SomeUint16Array Immutable Source
type Uint32Array = SomeUint32Array Immutable Source
type Uint8ClampedArray = SomeUint8ClampedArray Immutable Source
type Float32Array = SomeFloat32Array Immutable Source
type Float64Array = SomeFloat64Array Immutable 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