ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.TypedArray.DataView.ST

Contents

Synopsis

Documentation

type STDataView s = SomeDataView (STMutable s) Source

dataView :: STArrayBuffer s -> STDataView s Source

Create a DataView for the whole ArrayBuffer

thaw :: ArrayBuffer -> ST s (STArrayBuffer s) Source

Create an STArrayBuffer by copying an immutable ArrayBuffer

reading

writing

writeInt8 :: Int -> Int8 -> STDataView s -> ST s () Source

writeInt32LE :: Int -> Int -> STDataView s -> ST s () Source

writeInt32BE :: Int -> Int -> STDataView s -> ST s () Source

writeUint8 :: Int -> Word8 -> STDataView s -> ST s () Source