ghcjs-base-0.2.0.0: base library for GHCJS

Safe HaskellNone
LanguageHaskell98

JavaScript.TypedArray.ArrayBuffer

Synopsis

Documentation

type ArrayBuffer = SomeArrayBuffer Immutable Source #

type MutableArrayBuffer = SomeArrayBuffer Mutable Source #

unsafeFreeze :: MutableArrayBuffer -> IO ArrayBuffer Source #

Create an immutable ArrayBuffer from a MutableArrayBuffer without copying. The result shares the buffer with the argument, not modify the data in the MutableArrayBuffer after freezing

byteLength :: SomeArrayBuffer any -> Int Source #