Module

Data.ArrayBuffer.Typed

Package
purescript-arraybuffer
Repository
jacereda/purescript-arraybuffer

#asInt8Array Source

asInt8Array :: DataView -> Int8Array

Create typed int8 array viewing the buffer mapped by the DataView

#asInt16Array Source

asInt16Array :: DataView -> Int16Array

Create typed int16 array viewing the buffer mapped by the DataView

#asInt32Array Source

asInt32Array :: DataView -> Int32Array

Create typed int32 array viewing the buffer mapped by the DataView

#asUint8Array Source

asUint8Array :: DataView -> Uint8Array

Create typed uint8 array viewing the buffer mapped by the DataView

#asUint16Array Source

asUint16Array :: DataView -> Uint16Array

Create typed uint16 array viewing the buffer mapped by the DataView

#asUint32Array Source

asUint32Array :: DataView -> Uint32Array

Create typed uint32 array viewing the buffer mapped by the DataView

#asUint8ClampedArray Source

asUint8ClampedArray :: DataView -> Uint8ClampedArray

Create typed uint8 clamped array viewing the buffer mapped by the DataView

#asFloat32Array Source

asFloat32Array :: DataView -> Float32Array

Create typed float32 array viewing the buffer mapped by the DataView

#asFloat64Array Source

asFloat64Array :: DataView -> Float64Array

Create typed float64 array viewing the buffer mapped by the DataView

#dataView Source

dataView :: forall a. ArrayView a -> DataView

Interpret typed array as a DataView.

#set Source

set :: forall e a. ArrayView a -> ByteOffset -> ArrayView a -> Eff (arrayBuffer :: ARRAY_BUFFER | e) Unit

Stores multiple values in the last typed array, reading input values from ther first typed array.

#unsafeAt Source

unsafeAt :: forall e a. ArrayView a -> Int -> Eff (arrayBuffer :: ARRAY_BUFFER | e) Number

Fetch element at index.

#hasIndex Source

hasIndex :: forall a. ArrayView a -> Int -> Boolean

Determine if a certain index is valid.

#at Source

at :: forall e a. ArrayView a -> Int -> Eff (arrayBuffer :: ARRAY_BUFFER | e) (Maybe Number)

Fetch element at index.

#toArray Source

toArray :: forall a. ArrayView a -> Array Number

Turn typed array into an array.

#toIntArray Source

toIntArray :: forall a. ArrayView a -> Array Int

Turn typed array into integer array.