-
Notifications
You must be signed in to change notification settings - Fork 147
Buffer Class Reference
The AV.Buffer class wraps around JavaScript typed arrays to provide a few additional helper functions.
Creates a new AV.Buffer with the specified typed array.
Allocates a new empty AV.Buffer of the specified size.
A property that holds the size of the buffer.
Returns a new AV.Buffer with a copy of the data in this buffer.
Returns a new AV.Buffer starting at offset and ending at offset + length. The returned buffer is backed by the same typed array in memory, so changes to the sliced buffer will be reflected in the original buffer and vise versa. If you want a true sliced copy, call buf.slice(offset, length).copy().
Returns a Blob representation of the buffer using the Blob constructor and BlobBuilder as supported by the given browser.
Returns a Blob URL to the buffer's contents, for linking to in an image tag, for example.