Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type Buffer = SomeBuffer Immutable
- type MutableBuffer = SomeBuffer Mutable
- create :: Int -> JSM MutableBuffer
- createFromArrayBuffer :: SomeArrayBuffer any -> GHCJSPure (SomeBuffer any)
- thaw :: Buffer -> JSM MutableBuffer
- freeze :: MutableBuffer -> JSM Buffer
- clone :: MutableBuffer -> JSM (SomeBuffer any2)
- byteLength :: SomeBuffer any -> GHCJSPure Int
- getArrayBuffer :: SomeBuffer any -> GHCJSPure (SomeArrayBuffer any)
- getUint8Array :: SomeBuffer any -> GHCJSPure (SomeUint8Array any)
- getUint16Array :: SomeBuffer any -> GHCJSPure (SomeUint16Array any)
- getInt32Array :: SomeBuffer any -> GHCJSPure (SomeInt32Array any)
- getDataView :: SomeBuffer any -> GHCJSPure (SomeDataView any)
- getFloat32Array :: SomeBuffer any -> GHCJSPure (SomeFloat32Array any)
- getFloat64Array :: SomeBuffer any -> GHCJSPure (SomeFloat64Array any)
- toByteString :: Int -> Maybe Int -> Buffer -> GHCJSPure ByteString
- fromByteString :: ByteString -> GHCJSPure (Buffer, Int, Int)
Documentation
type Buffer = SomeBuffer Immutable Source #
type MutableBuffer = SomeBuffer Mutable Source #
createFromArrayBuffer :: SomeArrayBuffer any -> GHCJSPure (SomeBuffer any) Source #
clone :: MutableBuffer -> JSM (SomeBuffer any2) Source #
JavaScript properties
byteLength :: SomeBuffer any -> GHCJSPure Int Source #
getArrayBuffer :: SomeBuffer any -> GHCJSPure (SomeArrayBuffer any) Source #
getUint8Array :: SomeBuffer any -> GHCJSPure (SomeUint8Array any) Source #
getUint16Array :: SomeBuffer any -> GHCJSPure (SomeUint16Array any) Source #
getInt32Array :: SomeBuffer any -> GHCJSPure (SomeInt32Array any) Source #
getDataView :: SomeBuffer any -> GHCJSPure (SomeDataView any) Source #
getFloat32Array :: SomeBuffer any -> GHCJSPure (SomeFloat32Array any) Source #
getFloat64Array :: SomeBuffer any -> GHCJSPure (SomeFloat64Array any) Source #
bytestring
toByteString :: Int -> Maybe Int -> Buffer -> GHCJSPure ByteString Source #
Wrap a Buffer
into a ByteString
using the given offset
and length.
fromByteString :: ByteString -> GHCJSPure (Buffer, Int, Int) Source #