gossamer/blob
Types
Values
pub fn array_buffer(
blob: Blob,
) -> promise.Promise(array_buffer.ArrayBuffer)
pub fn bytes(
blob: Blob,
) -> promise.Promise(uint8_array.Uint8Array)
pub fn from_bytes(bytes: uint8_array.Uint8Array) -> Blob
Creates a new Blob from a Uint8Array.
pub fn from_bytes_with_type(
bytes: uint8_array.Uint8Array,
mime_type: String,
) -> Blob
Creates a new Blob from a Uint8Array with a MIME type.
pub fn from_string_with_type(
content: String,
mime_type: String,
) -> Blob
Creates a new Blob from a string with a MIME type.
pub fn stream(
blob: Blob,
) -> readable_stream.ReadableStream(uint8_array.Uint8Array)
pub fn text(blob: Blob) -> promise.Promise(String)