ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.TypedArray.ST

Synopsis

Documentation

type STInt8Array s = SomeSTTypedArray s Int8Elem Source

type STInt16Array s = SomeSTTypedArray s Int16Elem Source

type STInt32Array s = SomeSTTypedArray s Int32Elem Source

type STUint8Array s = SomeSTTypedArray s Uint8Elem Source

type STUint16Array s = SomeSTTypedArray s Uint16Elem Source

type STUint32Array s = SomeSTTypedArray s Uint32Elem Source

type STFloat32Array s = SomeSTTypedArray s Float32Elem Source

type STFloat64Array s = SomeSTTypedArray s Float64Elem Source

type STUint8ClampedArray s = SomeSTTypedArray s Uint8ClampedElem 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