gossamer/blob

Types

pub type Blob

Values

pub fn array_buffer(
  blob: Blob,
) -> promise.Promise(Result(array_buffer.ArrayBuffer, String))
pub fn bytes(
  blob: Blob,
) -> promise.Promise(Result(uint8_array.Uint8Array, String))
pub fn from_bytes(bytes: uint8_array.Uint8Array) -> Blob
pub fn from_bytes_with_type(
  bytes: uint8_array.Uint8Array,
  mime_type: String,
) -> Blob
pub fn from_string(content: String) -> Blob
pub fn from_string_with_type(
  content: String,
  mime_type: String,
) -> Blob
pub fn new() -> Blob
pub fn size(blob: Blob) -> Int
pub fn slice(blob: Blob, start: Int, end: Int) -> Blob
pub fn slice_with_type(
  blob: Blob,
  start: Int,
  end: Int,
  content_type: String,
) -> Blob
pub fn text(
  blob: Blob,
) -> promise.Promise(Result(String, String))
pub fn type_(blob: Blob) -> String
Search Document