ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.TypedArray.DataView

Contents

Synopsis

Documentation

type DataView = SomeDataView Immutable Source #

type MutableDataView = SomeDataView Mutable Source #

dataView :: SomeArrayBuffer any -> SomeDataView any Source #

Create a DataView for the whole ArrayBuffer

reading an immutable dataview

getInt8 :: Int -> DataView -> Int8 Source #

getInt16LE :: Int -> DataView -> Int16 Source #

getInt16BE :: Int -> DataView -> Int16 Source #

getUint8 :: Int -> DataView -> Word8 Source #

getUint16LE :: Int -> DataView -> Word16 Source #

getUint16BE :: Int -> DataView -> Word16 Source #

reading a mutable dataview

writing to a mutable dataview

writeInt8 :: Int -> Int8 -> MutableDataView -> IO () Source #

writeInt16LE :: Int -> Int16 -> MutableDataView -> IO () Source #

writeInt16BE :: Int -> Int16 -> MutableDataView -> IO () Source #

writeUint8 :: Int -> Word8 -> MutableDataView -> IO () Source #

writeUint16LE :: Int -> Word16 -> MutableDataView -> IO () Source #

writeUint16BE :: Int -> Word16 -> MutableDataView -> IO () Source #