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