Module

Data.ArrayBuffer.ArrayBuffer

Package
purescript-arraybuffer
Repository
purescript-contrib/purescript-arraybuffer

This module represents the functional bindings to JavaScript's ArrayBuffer objects. See MDN's spec for details.

#empty Source

empty :: ByteLength -> Effect ArrayBuffer

Create an ArrayBuffer with the given capacity.

#byteLength Source

byteLength :: ArrayBuffer -> ByteLength

Represents the length of an ArrayBuffer in bytes.

#slice Source

slice :: ByteOffset -> ByteOffset -> ArrayBuffer -> ArrayBuffer

Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive.