gossamer/uint8_array

Types

pub type Uint8Array

Values

pub fn at(array: Uint8Array, index: Int) -> Result(Int, Nil)
pub fn byte_length(array: Uint8Array) -> Int
pub fn byte_offset(array: Uint8Array) -> Int
pub fn copy_within(
  array: Uint8Array,
  target: Int,
  start: Int,
) -> Uint8Array
pub fn copy_within_range(
  array: Uint8Array,
  target: Int,
  start: Int,
  end: Int,
) -> Uint8Array
pub fn every(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Bool
pub fn fill(array: Uint8Array, value: Int) -> Uint8Array
pub fn fill_range(
  array: Uint8Array,
  value: Int,
  start: Int,
  end: Int,
) -> Uint8Array
pub fn filter(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Uint8Array
pub fn find(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Result(Int, Nil)
pub fn find_index(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Int
pub fn find_last(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Result(Int, Nil)
pub fn find_last_index(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Int
pub fn for_each(
  array: Uint8Array,
  callback: fn(Int) -> Nil,
) -> Nil
pub fn from_base64(string: String) -> Uint8Array
pub fn from_buffer(
  buffer: array_buffer.ArrayBuffer,
) -> Uint8Array
pub fn from_hex(string: String) -> Uint8Array
pub fn from_length(length: Int) -> Uint8Array
pub fn from_list(list: List(Int)) -> Uint8Array
pub fn includes(array: Uint8Array, value: Int) -> Bool
pub fn includes_from(
  array: Uint8Array,
  value: Int,
  from_index: Int,
) -> Bool
pub fn index_every(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Bool
pub fn index_filter(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Uint8Array
pub fn index_find(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Result(Int, Nil)
pub fn index_find_index(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Int
pub fn index_find_last(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Result(Int, Nil)
pub fn index_find_last_index(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Int
pub fn index_for_each(
  array: Uint8Array,
  callback: fn(Int, Int) -> Nil,
) -> Nil
pub fn index_map(
  array: Uint8Array,
  callback: fn(Int, Int) -> Int,
) -> Uint8Array
pub fn index_of(array: Uint8Array, value: Int) -> Int
pub fn index_of_from(
  array: Uint8Array,
  value: Int,
  from_index: Int,
) -> Int
pub fn index_reduce(
  array: Uint8Array,
  initial: a,
  callback: fn(a, Int, Int) -> a,
) -> a
pub fn index_reduce_right(
  array: Uint8Array,
  initial: a,
  callback: fn(a, Int, Int) -> a,
) -> a
pub fn index_some(
  array: Uint8Array,
  predicate: fn(Int, Int) -> Bool,
) -> Bool
pub fn join(array: Uint8Array, separator: String) -> String
pub fn last_index_of(array: Uint8Array, value: Int) -> Int
pub fn last_index_of_from(
  array: Uint8Array,
  value: Int,
  from_index: Int,
) -> Int
pub fn length(array: Uint8Array) -> Int
pub fn map(
  array: Uint8Array,
  callback: fn(Int) -> Int,
) -> Uint8Array
pub fn new() -> Uint8Array
pub fn reduce(
  array: Uint8Array,
  initial: a,
  callback: fn(a, Int) -> a,
) -> a
pub fn reduce_right(
  array: Uint8Array,
  initial: a,
  callback: fn(a, Int) -> a,
) -> a
pub fn reverse(array: Uint8Array) -> Uint8Array
pub fn set(array: Uint8Array, values: Uint8Array) -> Nil
pub fn set_from_base64(
  array: Uint8Array,
  string: String,
) -> #(Int, Int)
pub fn set_from_hex(
  array: Uint8Array,
  string: String,
) -> #(Int, Int)
pub fn set_with_offset(
  array: Uint8Array,
  values: Uint8Array,
  offset: Int,
) -> Nil
pub fn slice(array: Uint8Array) -> Uint8Array
pub fn slice_from(array: Uint8Array, start: Int) -> Uint8Array
pub fn slice_range(
  array: Uint8Array,
  start: Int,
  end: Int,
) -> Uint8Array
pub fn some(
  array: Uint8Array,
  predicate: fn(Int) -> Bool,
) -> Bool
pub fn sort(
  array: Uint8Array,
  compare: fn(Int, Int) -> order.Order,
) -> Uint8Array
pub fn subarray(
  array: Uint8Array,
  begin: Int,
  end: Int,
) -> Uint8Array
pub fn to_base64(array: Uint8Array) -> String
pub fn to_hex(array: Uint8Array) -> String
pub fn to_list(array: Uint8Array) -> List(Int)
pub fn to_reversed(array: Uint8Array) -> Uint8Array
pub fn to_sorted(
  array: Uint8Array,
  compare: fn(Int, Int) -> order.Order,
) -> Uint8Array
pub fn with(
  array: Uint8Array,
  index: Int,
  value: Int,
) -> Uint8Array
Search Document