Skip to main content

bn.createBufferURL

createBufferURL(data, options?): string

description Store arrayBuffer in memory and provide an URL to access it

example

const url = bn.createBuffer(buffer, { extension: 'svg' })

Parameters

NameType
dataCreateBufferURLData
options?CreateBufferURLOptions

Returns

string


CreateBufferURLData

Ƭ CreateBufferURLData: ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array


CreateBufferURLOptions

Ƭ CreateBufferURLOptions: Object

Type declaration

NameTypeDescription
extension?stringthe options of buffer url. Right now it supports 'svg' extension