Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- type DataView = SomeDataView Immutable
- type MutableDataView = SomeDataView Mutable
- dataView :: SomeArrayBuffer any -> SomeDataView any
- freeze :: MutableDataView -> IO DataView
- unsafeFreeze :: MutableDataView -> IO DataView
- thaw :: DataView -> IO MutableDataView
- unsafeThaw :: DataView -> IO MutableDataView
- getInt8 :: Int -> DataView -> Int8
- unsafeGetInt8 :: Int -> DataView -> Int8
- getInt16LE :: Int -> DataView -> Int16
- getInt16BE :: Int -> DataView -> Int16
- unsafeGetInt16LE :: Int -> DataView -> Int16
- unsafeGetInt16BE :: Int -> DataView -> Int16
- getInt32LE :: Int -> DataView -> Int
- getInt32BE :: Int -> DataView -> Int
- unsafeGetInt32LE :: Int -> DataView -> Int
- unsafeGetInt32BE :: Int -> DataView -> Int
- getUint8 :: Int -> DataView -> Word8
- unsafeGetUint8 :: Int -> DataView -> Word8
- getUint16LE :: Int -> DataView -> Word16
- getUint16BE :: Int -> DataView -> Word16
- unsafeGetUint16LE :: Int -> DataView -> Word16
- unsafeGetUint16BE :: Int -> DataView -> Word16
- getUint32LE :: Int -> DataView -> Word
- getUint32BE :: Int -> DataView -> Word
- unsafeGetUint32LE :: Int -> DataView -> Word
- unsafeGetUint32BE :: Int -> DataView -> Word
- getFloat32LE :: Int -> DataView -> Double
- getFloat32BE :: Int -> DataView -> Double
- unsafeGetFloat32LE :: Int -> DataView -> Double
- unsafeGetFloat32BE :: Int -> DataView -> Double
- getFloat64LE :: Int -> DataView -> Double
- getFloat64BE :: Int -> DataView -> Double
- unsafeGetFloat64LE :: Int -> DataView -> Double
- unsafeGetFloat64BE :: Int -> DataView -> Double
- readInt8 :: Int -> MutableDataView -> IO Int8
- unsafeReadInt8 :: Int -> MutableDataView -> IO Int8
- readInt16LE :: Int -> MutableDataView -> IO Int16
- readInt16BE :: Int -> MutableDataView -> IO Int16
- unsafeReadInt16LE :: Int -> MutableDataView -> IO Int16
- unsafeReadInt16BE :: Int -> MutableDataView -> IO Int16
- readInt32LE :: Int -> MutableDataView -> IO Int
- readInt32BE :: Int -> MutableDataView -> IO Int
- unsafeReadInt32LE :: Int -> MutableDataView -> IO Int
- unsafeReadInt32BE :: Int -> MutableDataView -> IO Int
- readUint8 :: Int -> MutableDataView -> IO Word8
- unsafeReadUint8 :: Int -> MutableDataView -> IO Word8
- readUint16LE :: Int -> MutableDataView -> IO Word16
- readUint16BE :: Int -> MutableDataView -> IO Word16
- unsafeReadUint16LE :: Int -> MutableDataView -> IO Word16
- unsafeReadUint16BE :: Int -> MutableDataView -> IO Word16
- readUint32LE :: Int -> MutableDataView -> IO Word
- readUint32BE :: Int -> MutableDataView -> IO Word
- unsafeReadUint32LE :: Int -> MutableDataView -> IO Word
- unsafeReadUint32BE :: Int -> MutableDataView -> IO Word
- readFloat32LE :: Int -> MutableDataView -> IO Double
- readFloat32BE :: Int -> MutableDataView -> IO Double
- unsafeReadFloat32LE :: Int -> MutableDataView -> IO Double
- unsafeReadFloat32BE :: Int -> MutableDataView -> IO Double
- readFloat64LE :: Int -> MutableDataView -> IO Double
- readFloat64BE :: Int -> MutableDataView -> IO Double
- unsafeReadFloat64LE :: Int -> MutableDataView -> IO Double
- unsafeReadFloat64BE :: Int -> MutableDataView -> IO Double
- writeInt8 :: Int -> Int8 -> MutableDataView -> IO ()
- unsafeWriteInt8 :: Int -> Int8 -> MutableDataView -> IO ()
- writeInt16LE :: Int -> Int16 -> MutableDataView -> IO ()
- writeInt16BE :: Int -> Int16 -> MutableDataView -> IO ()
- unsafeWriteInt16LE :: Int -> Int16 -> MutableDataView -> IO ()
- unsafeWriteInt16BE :: Int -> Int16 -> MutableDataView -> IO ()
- writeInt32LE :: Int -> Int -> MutableDataView -> IO ()
- writeInt32BE :: Int -> Int -> MutableDataView -> IO ()
- unsafeWriteInt32LE :: Int -> Int -> MutableDataView -> IO ()
- unsafeWriteInt32BE :: Int -> Int -> MutableDataView -> IO ()
- writeUint8 :: Int -> Word8 -> MutableDataView -> IO ()
- unsafeWriteUint8 :: Int -> Word8 -> MutableDataView -> IO ()
- writeUint16LE :: Int -> Word16 -> MutableDataView -> IO ()
- writeUint16BE :: Int -> Word16 -> MutableDataView -> IO ()
- unsafeWriteUint16LE :: Int -> Word16 -> MutableDataView -> IO ()
- unsafeWriteUint16BE :: Int -> Word16 -> MutableDataView -> IO ()
- writeUint32LE :: Int -> Word -> MutableDataView -> IO ()
- writeUint32BE :: Int -> Word -> MutableDataView -> IO ()
- unsafeWriteUint32LE :: Int -> Word -> MutableDataView -> IO ()
- unsafeWriteUint32BE :: Int -> Word -> MutableDataView -> IO ()
- writeFloat32LE :: Int -> Double -> MutableDataView -> IO ()
- writeFloat32BE :: Int -> Double -> MutableDataView -> IO ()
- unsafeWriteFloat32LE :: Int -> Double -> MutableDataView -> IO ()
- unsafeWriteFloat32BE :: Int -> Double -> MutableDataView -> IO ()
- writeFloat64LE :: Int -> Double -> MutableDataView -> IO ()
- writeFloat64BE :: Int -> Double -> MutableDataView -> IO ()
- unsafeWriteFloat64LE :: Int -> Double -> MutableDataView -> IO ()
- unsafeWriteFloat64BE :: Int -> Double -> MutableDataView -> IO ()
Documentation
type MutableDataView = SomeDataView Mutable Source #
dataView :: SomeArrayBuffer any -> SomeDataView any Source #
Create a DataView
for the whole ArrayBuffer
unsafeFreeze :: MutableDataView -> IO DataView Source #
unsafeThaw :: DataView -> IO MutableDataView Source #
reading an immutable dataview
unsafeGetInt8 :: Int -> DataView -> Int8 Source #
getInt16LE :: Int -> DataView -> Int16 Source #
getInt16BE :: Int -> DataView -> Int16 Source #
unsafeGetInt16LE :: Int -> DataView -> Int16 Source #
unsafeGetInt16BE :: Int -> DataView -> Int16 Source #
unsafeGetUint8 :: Int -> DataView -> Word8 Source #
getUint16LE :: Int -> DataView -> Word16 Source #
getUint16BE :: Int -> DataView -> Word16 Source #
unsafeGetUint16LE :: Int -> DataView -> Word16 Source #
unsafeGetUint16BE :: Int -> DataView -> Word16 Source #
reading a mutable dataview
unsafeReadInt8 :: Int -> MutableDataView -> IO Int8 Source #
readInt16LE :: Int -> MutableDataView -> IO Int16 Source #
readInt16BE :: Int -> MutableDataView -> IO Int16 Source #
unsafeReadInt16LE :: Int -> MutableDataView -> IO Int16 Source #
unsafeReadInt16BE :: Int -> MutableDataView -> IO Int16 Source #
readInt32LE :: Int -> MutableDataView -> IO Int Source #
readInt32BE :: Int -> MutableDataView -> IO Int Source #
unsafeReadInt32LE :: Int -> MutableDataView -> IO Int Source #
unsafeReadInt32BE :: Int -> MutableDataView -> IO Int Source #
unsafeReadUint8 :: Int -> MutableDataView -> IO Word8 Source #
readUint16LE :: Int -> MutableDataView -> IO Word16 Source #
readUint16BE :: Int -> MutableDataView -> IO Word16 Source #
unsafeReadUint16LE :: Int -> MutableDataView -> IO Word16 Source #
unsafeReadUint16BE :: Int -> MutableDataView -> IO Word16 Source #
readUint32LE :: Int -> MutableDataView -> IO Word Source #
readUint32BE :: Int -> MutableDataView -> IO Word Source #
unsafeReadUint32LE :: Int -> MutableDataView -> IO Word Source #
unsafeReadUint32BE :: Int -> MutableDataView -> IO Word Source #
readFloat32LE :: Int -> MutableDataView -> IO Double Source #
readFloat32BE :: Int -> MutableDataView -> IO Double Source #
unsafeReadFloat32LE :: Int -> MutableDataView -> IO Double Source #
unsafeReadFloat32BE :: Int -> MutableDataView -> IO Double Source #
readFloat64LE :: Int -> MutableDataView -> IO Double Source #
readFloat64BE :: Int -> MutableDataView -> IO Double Source #
unsafeReadFloat64LE :: Int -> MutableDataView -> IO Double Source #
unsafeReadFloat64BE :: Int -> MutableDataView -> IO Double Source #
writing to a mutable dataview
unsafeWriteInt8 :: Int -> Int8 -> MutableDataView -> IO () Source #
writeInt16LE :: Int -> Int16 -> MutableDataView -> IO () Source #
writeInt16BE :: Int -> Int16 -> MutableDataView -> IO () Source #
unsafeWriteInt16LE :: Int -> Int16 -> MutableDataView -> IO () Source #
unsafeWriteInt16BE :: Int -> Int16 -> MutableDataView -> IO () Source #
writeInt32LE :: Int -> Int -> MutableDataView -> IO () Source #
writeInt32BE :: Int -> Int -> MutableDataView -> IO () Source #
unsafeWriteInt32LE :: Int -> Int -> MutableDataView -> IO () Source #
unsafeWriteInt32BE :: Int -> Int -> MutableDataView -> IO () Source #
writeUint8 :: Int -> Word8 -> MutableDataView -> IO () Source #
unsafeWriteUint8 :: Int -> Word8 -> MutableDataView -> IO () Source #
writeUint16LE :: Int -> Word16 -> MutableDataView -> IO () Source #
writeUint16BE :: Int -> Word16 -> MutableDataView -> IO () Source #
unsafeWriteUint16LE :: Int -> Word16 -> MutableDataView -> IO () Source #
unsafeWriteUint16BE :: Int -> Word16 -> MutableDataView -> IO () Source #
writeUint32LE :: Int -> Word -> MutableDataView -> IO () Source #
writeUint32BE :: Int -> Word -> MutableDataView -> IO () Source #
unsafeWriteUint32LE :: Int -> Word -> MutableDataView -> IO () Source #
unsafeWriteUint32BE :: Int -> Word -> MutableDataView -> IO () Source #
writeFloat32LE :: Int -> Double -> MutableDataView -> IO () Source #
writeFloat32BE :: Int -> Double -> MutableDataView -> IO () Source #
unsafeWriteFloat32LE :: Int -> Double -> MutableDataView -> IO () Source #
unsafeWriteFloat32BE :: Int -> Double -> MutableDataView -> IO () Source #
writeFloat64LE :: Int -> Double -> MutableDataView -> IO () Source #
writeFloat64BE :: Int -> Double -> MutableDataView -> IO () Source #
unsafeWriteFloat64LE :: Int -> Double -> MutableDataView -> IO () Source #
unsafeWriteFloat64BE :: Int -> Double -> MutableDataView -> IO () Source #