Module

Data.ArrayBuffer.DataView

Package
purescript-arraybuffer
Repository
jacereda/purescript-arraybuffer

#whole Source

whole :: ArrayBuffer -> DataView

View mapping the whole ArrayBuffer.

#slice Source

slice :: ByteOffset -> ByteLength -> ArrayBuffer -> (Maybe DataView)

View mapping a region of the ArrayBuffer.

#buffer Source

buffer :: DataView -> ArrayBuffer

ArrayBuffer being mapped by the view.

#byteOffset Source

byteOffset :: DataView -> ByteOffset

Represents the offset of this view from the start of its ArrayBuffer.

#byteLength Source

byteLength :: DataView -> ByteLength

Represents the length of this view.

#Getter Source

type Getter r = DataView -> ByteOffset -> Effect (Maybe r)

Type for all fetching functions.

#getInt8 Source

getInt8 :: Getter Int

Fetch int8 value at a certain index in a DataView.

#getInt16be Source

getInt16be :: Getter Int

Fetch int16 value at a certain index in a DataView.

#getInt32be Source

getInt32be :: Getter Int

Fetch int32 value at a certain index in a DataView.

#getUint8 Source

getUint8 :: Getter UInt

Fetch uint8 value at a certain index in a DataView.

#getUint16be Source

getUint16be :: Getter UInt

Fetch uint16 value at a certain index in a DataView.

#getUint32be Source

getUint32be :: Getter UInt

Fetch uint32 value at a certain index in a DataView.

#getFloat32be Source

getFloat32be :: Getter Number

Fetch float32 value at a certain index in a DataView.

#getFloat64be Source

getFloat64be :: Getter Number

Fetch float64 value at a certain index in a DataView.

#Setter Source

type Setter r = DataView -> r -> ByteOffset -> Effect Unit

Type for all storing functions.

#setInt8 Source

setInt8 :: Setter Int

Store int8 value at a certain index in a DataView.

#setInt16be Source

setInt16be :: Setter Int

Store int16 value at a certain index in a DataView.

#setInt32be Source

setInt32be :: Setter Int

Store int32 value at a certain index in a DataView.

#setUint8 Source

setUint8 :: Setter UInt

Store uint8 value at a certain index in a DataView.

#setUint16be Source

setUint16be :: Setter UInt

Store uint16 value at a certain index in a DataView.

#setUint32be Source

setUint32be :: Setter UInt

Store uint32 value at a certain index in a DataView.

#setFloat32be Source

setFloat32be :: Setter Number

Store float32 value at a certain index in a DataView.

#setFloat64be Source

setFloat64be :: Setter Number

Store float64 value at a certain index in a DataView.