Wren

Module bloburl

The blob URL store (src/fetch/blob_urls.odin): what URL.createObjectURL makes, for everything that loads a URL outside the realm that made it (an image, a stylesheet, a frame, a media element).

Exposed to: Window, Worker. Source: api/bloburl.widl.

Odin: import "wren:bloburl".

Functions

BlobURL_register

void BlobURL_register(string url, string type, bytes data)

The bytes (a copy) a blob: URL stands for, until BlobURL_revoke or the end of the realm.

Odin: bloburl.register.

Host: BlobURL_register :: proc(c: ^Call, url: string, type: string, data: []u8)

BlobURL_revoke

void BlobURL_revoke(string url)

Odin: bloburl.revoke.

Host: BlobURL_revoke :: proc(c: ^Call, url: string)

Edit this page on GitHub