Module
Data.ArrayBuffer.ArrayBuffer
- Package
- purescript-arraybuffer
- Repository
- jacereda/purescript-arraybuffer
#ARRAY_BUFFER Source
data ARRAY_BUFFER :: Effect
#create Source
create :: forall e. ByteLength -> Eff (arrayBuffer :: ARRAY_BUFFER | e) ArrayBuffer
Create an ArrayBuffer
with the given capacity.
#byteLength Source
byteLength :: ArrayBuffer -> ByteLength
Represents the length of an ArrayBuffer
in bytes.
#slice Source
slice :: forall e. ByteOffset -> ByteOffset -> ArrayBuffer -> Eff (arrayBuffer :: ARRAY_BUFFER | e) ArrayBuffer
Returns a new ArrayBuffer
whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive.
#fromArray Source
fromArray :: forall e. Array Number -> Eff (arrayBuffer :: ARRAY_BUFFER | e) ArrayBuffer
Convert an array into an ArrayBuffer
representation.
#fromString Source
fromString :: forall e. String -> Eff (arrayBuffer :: ARRAY_BUFFER | e) ArrayBuffer
Convert a string into an ArrayBuffer
representation.