Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- type STDataView s = SomeDataView (STMutable s)
- dataView :: STArrayBuffer s -> STDataView s
- freeze :: STArrayBuffer s -> ST s ArrayBuffer
- unsafeFreeze :: STArrayBuffer s -> ST s ArrayBuffer
- thaw :: ArrayBuffer -> ST s (STArrayBuffer s)
- unsafeThaw :: ArrayBuffer -> ST s (STArrayBuffer s)
- readInt8 :: Int -> STDataView s -> ST s Int8
- unsafeReadInt8 :: Int -> STDataView s -> ST s Int8
- readInt16LE :: Int -> STDataView s -> ST s Int16
- readInt16BE :: Int -> STDataView s -> ST s Int16
- unsafeReadInt16LE :: Int -> STDataView s -> ST s Int16
- unsafeReadInt16BE :: Int -> STDataView s -> ST s Int16
- readInt32LE :: Int -> STDataView s -> ST s Int
- readInt32BE :: Int -> STDataView s -> ST s Int
- unsafeReadInt32LE :: Int -> STDataView s -> ST s Int
- unsafeReadInt32BE :: Int -> STDataView s -> ST s Int
- readUint8 :: Int -> STDataView s -> ST s Word8
- unsafeReadUint8 :: Int -> STDataView s -> ST s Word8
- readUint16LE :: Int -> STDataView s -> ST s Word16
- readUint16BE :: Int -> STDataView s -> ST s Word16
- unsafeReadUint16LE :: Int -> STDataView s -> ST s Word16
- unsafeReadUint16BE :: Int -> STDataView s -> ST s Word16
- readUint32LE :: Int -> STDataView s -> ST s Word
- readUint32BE :: Int -> STDataView s -> ST s Word
- unsafeReadUint32LE :: Int -> STDataView s -> ST s Word
- unsafeReadUint32BE :: Int -> STDataView s -> ST s Word
- readFloat32LE :: Int -> STDataView s -> ST s Double
- readFloat32BE :: Int -> STDataView s -> ST s Double
- unsafeReadFloat32LE :: Int -> STDataView s -> ST s Double
- unsafeReadFloat32BE :: Int -> STDataView s -> ST s Double
- readFloat64LE :: Int -> STDataView s -> ST s Double
- readFloat64BE :: Int -> STDataView s -> ST s Double
- unsafeReadFloat64LE :: Int -> STDataView s -> ST s Double
- unsafeReadFloat64BE :: Int -> STDataView s -> ST s Double
- writeInt8 :: Int -> Int8 -> STDataView s -> ST s ()
- unsafeWriteInt8 :: Int -> Int8 -> STDataView s -> ST s ()
- writeInt16LE :: Int -> Int16 -> STDataView s -> ST s ()
- writeInt16BE :: Int -> Int16 -> STDataView s -> ST s ()
- unsafeWriteInt16LE :: Int -> Int16 -> STDataView s -> ST s ()
- unsafeWriteInt16BE :: Int -> Int16 -> STDataView s -> ST s ()
- writeInt32LE :: Int -> Int -> STDataView s -> ST s ()
- writeInt32BE :: Int -> Int -> STDataView s -> ST s ()
- unsafeWriteInt32LE :: Int -> Int -> STDataView s -> ST s ()
- unsafeWriteInt32BE :: Int -> Int -> STDataView s -> ST s ()
- writeUint8 :: Int -> Word8 -> STDataView s -> ST s ()
- unsafeWriteUint8 :: Int -> Word8 -> STDataView s -> ST s ()
- writeUint16LE :: Int -> Word16 -> STDataView s -> ST s ()
- writeUint16BE :: Int -> Word16 -> STDataView s -> ST s ()
- unsafeWriteUint16LE :: Int -> Word16 -> STDataView s -> ST s ()
- unsafeWriteUint16BE :: Int -> Word16 -> STDataView s -> ST s ()
- writeUint32LE :: Int -> Word -> STDataView s -> ST s ()
- writeUint32BE :: Int -> Word -> STDataView s -> ST s ()
- unsafeWriteUint32LE :: Int -> Word -> STDataView s -> ST s ()
- unsafeWriteUint32BE :: Int -> Word -> STDataView s -> ST s ()
- writeFloat32LE :: Int -> Double -> STDataView s -> ST s ()
- writeFloat32BE :: Int -> Double -> STDataView s -> ST s ()
- unsafeWriteFloat32LE :: Int -> Double -> STDataView s -> ST s ()
- unsafeWriteFloat32BE :: Int -> Double -> STDataView s -> ST s ()
- writeFloat64LE :: Int -> Double -> STDataView s -> ST s ()
- writeFloat64BE :: Int -> Double -> STDataView s -> ST s ()
- unsafeWriteFloat64LE :: Int -> Double -> STDataView s -> ST s ()
- unsafeWriteFloat64BE :: Int -> Double -> STDataView s -> ST s ()
Documentation
type STDataView s = SomeDataView (STMutable s) Source #
dataView :: STArrayBuffer s -> STDataView s Source #
Create a DataView
for the whole ArrayBuffer
freeze :: STArrayBuffer s -> ST s ArrayBuffer Source #
unsafeFreeze :: STArrayBuffer s -> ST s ArrayBuffer Source #
thaw :: ArrayBuffer -> ST s (STArrayBuffer s) Source #
Create an STArrayBuffer
by copying an immutable ArrayBuffer
unsafeThaw :: ArrayBuffer -> ST s (STArrayBuffer s) Source #
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 #
readInt32LE :: Int -> STDataView s -> ST s Int Source #
readInt32BE :: Int -> STDataView s -> ST s Int Source #
unsafeReadInt32LE :: Int -> STDataView s -> ST s Int Source #
unsafeReadInt32BE :: Int -> STDataView s -> ST s Int 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 #
readUint32LE :: Int -> STDataView s -> ST s Word Source #
readUint32BE :: Int -> STDataView s -> ST s Word Source #
unsafeReadUint32LE :: Int -> STDataView s -> ST s Word Source #
unsafeReadUint32BE :: Int -> STDataView s -> ST s Word Source #
readFloat32LE :: Int -> STDataView s -> ST s Double Source #
readFloat32BE :: Int -> STDataView s -> ST s Double Source #
unsafeReadFloat32LE :: Int -> STDataView s -> ST s Double Source #
unsafeReadFloat32BE :: Int -> STDataView s -> ST s Double Source #
readFloat64LE :: Int -> STDataView s -> ST s Double Source #
readFloat64BE :: Int -> STDataView s -> ST s Double Source #
unsafeReadFloat64LE :: Int -> STDataView s -> ST s Double Source #
unsafeReadFloat64BE :: Int -> STDataView s -> ST s Double 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 #
unsafeWriteInt32LE :: Int -> Int -> STDataView s -> ST s () Source #
unsafeWriteInt32BE :: 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 #
unsafeWriteUint32LE :: Int -> Word -> STDataView s -> ST s () Source #
unsafeWriteUint32BE :: Int -> Word -> STDataView s -> ST s () Source #
writeFloat32LE :: Int -> Double -> STDataView s -> ST s () Source #
writeFloat32BE :: Int -> Double -> STDataView s -> ST s () Source #
unsafeWriteFloat32LE :: Int -> Double -> STDataView s -> ST s () Source #
unsafeWriteFloat32BE :: Int -> Double -> STDataView s -> ST s () Source #
writeFloat64LE :: Int -> Double -> STDataView s -> ST s () Source #
writeFloat64BE :: Int -> Double -> STDataView s -> ST s () Source #
unsafeWriteFloat64LE :: Int -> Double -> STDataView s -> ST s () Source #
unsafeWriteFloat64BE :: Int -> Double -> STDataView s -> ST s () Source #