Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- class TypedArray a where
- 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, index, unsafeSetIndex, setIndex, create, fromArray, fromArrayBuffer, indexOf, lastIndexOf
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 #
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