Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- type ArrayBuffer = SomeArrayBuffer Immutable
- type MutableArrayBuffer = SomeArrayBuffer Mutable
- freeze :: MutableArrayBuffer -> IO ArrayBuffer
- unsafeFreeze :: MutableArrayBuffer -> IO ArrayBuffer
- thaw :: ArrayBuffer -> IO MutableArrayBuffer
- unsafeThaw :: ArrayBuffer -> IO MutableArrayBuffer
- byteLength :: SomeArrayBuffer any -> Int
Documentation
type ArrayBuffer = SomeArrayBuffer Immutable Source #
type MutableArrayBuffer = SomeArrayBuffer Mutable Source #
freeze :: MutableArrayBuffer -> IO ArrayBuffer Source #
Create an immutable ArrayBuffer
by copying a MutableArrayBuffer
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
thaw :: ArrayBuffer -> IO MutableArrayBuffer Source #
Create a MutableArrayBuffer
by copying an immutable ArrayBuffer
byteLength :: SomeArrayBuffer any -> Int Source #