Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 -> 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 #
Instances
type Int8Array = SomeInt8Array Immutable 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 Float32Array = SomeFloat32Array Immutable Source #
type Float64Array = SomeFloat64Array Immutable 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 #