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

readInt8 :: Int -> STDataView s -> ST s Int8 Source #

unsafeReadInt8 :: Int -> STDataView s -> ST s Int8 Source #

readInt16LE :: Int -> STDataView s -> ST s Int16 Source #

readInt16BE :: Int -> STDataView s -> ST s Int16 Source #

unsafeReadInt16LE :: Int -> STDataView s -> ST s Int16 Source #

unsafeReadInt16BE :: Int -> STDataView s -> ST s Int16 Source #

readUint8 :: Int -> STDataView s -> ST s Word8 Source #

unsafeReadUint8 :: Int -> STDataView s -> ST s Word8 Source #

readUint16LE :: Int -> STDataView s -> ST s Word16 Source #

readUint16BE :: Int -> STDataView s -> ST s Word16 Source #

unsafeReadUint16LE :: Int -> STDataView s -> ST s Word16 Source #

unsafeReadUint16BE :: Int -> STDataView s -> ST s Word16 Source #

writing

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

unsafeWriteInt8 :: Int -> Int8 -> STDataView s -> ST s () Source #

writeInt16LE :: Int -> Int16 -> STDataView s -> ST s () Source #

writeInt16BE :: Int -> Int16 -> STDataView s -> ST s () Source #

unsafeWriteInt16LE :: Int -> Int16 -> STDataView s -> ST s () Source #

unsafeWriteInt16BE :: Int -> Int16 -> 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 #

unsafeWriteUint8 :: Int -> Word8 -> STDataView s -> ST s () Source #

writeUint16LE :: Int -> Word16 -> STDataView s -> ST s () Source #

writeUint16BE :: Int -> Word16 -> STDataView s -> ST s () Source #

unsafeWriteUint16LE :: Int -> Word16 -> STDataView s -> ST s () Source #

unsafeWriteUint16BE :: Int -> Word16 -> STDataView s -> ST s () Source #

writeUint32LE :: Int -> Word -> STDataView s -> ST s () Source #

writeUint32BE :: Int -> Word -> STDataView s -> ST s () Source #

writeFloat32LE :: Int -> Double -> STDataView s -> ST s () Source #

writeFloat32BE :: Int -> Double -> STDataView s -> ST s () Source #

writeFloat64LE :: Int -> Double -> STDataView s -> ST s () Source #

writeFloat64BE :: Int -> Double -> STDataView s -> ST s () Source #