Module
Data.ArrayBuffer.ArrayBuffer
- Package
- purescript-arraybuffer
- Repository
- jacereda/purescript-arraybuffer
#create Source
create :: ByteLength -> Effect ArrayBufferCreate an ArrayBuffer with the given capacity.
#byteLength Source
byteLength :: ArrayBuffer -> ByteLengthRepresents the length of an ArrayBuffer in bytes.
#slice Source
slice :: ByteOffset -> ByteOffset -> ArrayBuffer -> Effect ArrayBufferReturns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive.
#fromArray Source
fromArray :: Array Number -> ArrayBufferConvert an array into an ArrayBuffer representation.
#fromIntArray Source
fromIntArray :: Array Int -> ArrayBufferConvert an array into an ArrayBuffer representation.
#fromString Source
fromString :: String -> ArrayBufferConvert a string into an ArrayBuffer representation.