gossamer/uint8_array
Types
pub type Uint8Array
Values
pub fn at(
array: Uint8Array,
index index: Int,
) -> Result(Int, Nil)
pub fn buffer(of array: Uint8Array) -> array_buffer.ArrayBuffer
pub fn byte_length(of array: Uint8Array) -> Int
pub fn byte_offset(of array: Uint8Array) -> Int
pub fn copy_within(
array: Uint8Array,
to target: Int,
from start: Int,
) -> Uint8Array
pub fn copy_within_range(
array: Uint8Array,
to target: Int,
from start: Int,
up_to end: Int,
) -> Uint8Array
pub fn entries(of array: Uint8Array) -> List(#(Int, Int))
pub fn every(
in array: Uint8Array,
satisfying predicate: fn(Int) -> Bool,
) -> Bool
pub fn fill(array: Uint8Array, with value: Int) -> Uint8Array
pub fn fill_range(
array: Uint8Array,
with value: Int,
from start: Int,
to end: Int,
) -> Uint8Array
pub fn filter(
in array: Uint8Array,
keeping predicate: fn(Int) -> Bool,
) -> Uint8Array
pub fn find(
in array: Uint8Array,
one_that predicate: fn(Int) -> Bool,
) -> Result(Int, Nil)
pub fn find_index(
in array: Uint8Array,
one_that predicate: fn(Int) -> Bool,
) -> Int
pub fn find_last(
in array: Uint8Array,
one_that predicate: fn(Int) -> Bool,
) -> Result(Int, Nil)
pub fn find_last_index(
in array: Uint8Array,
one_that predicate: fn(Int) -> Bool,
) -> Int
pub fn for_each(
in array: Uint8Array,
run callback: fn(Int) -> b,
) -> 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 from_list_mapped(
list: List(a),
with mapper: fn(a) -> Int,
) -> Uint8Array
pub fn includes(in array: Uint8Array, value value: Int) -> Bool
pub fn includes_from(
in array: Uint8Array,
value value: Int,
from index: Int,
) -> Bool
pub fn index_every(
in array: Uint8Array,
satisfying predicate: fn(Int, Int) -> Bool,
) -> Bool
pub fn index_filter(
in array: Uint8Array,
keeping predicate: fn(Int, Int) -> Bool,
) -> Uint8Array
pub fn index_find(
in array: Uint8Array,
one_that predicate: fn(Int, Int) -> Bool,
) -> Result(Int, Nil)
pub fn index_find_index(
in array: Uint8Array,
one_that predicate: fn(Int, Int) -> Bool,
) -> Int
pub fn index_find_last(
in array: Uint8Array,
one_that predicate: fn(Int, Int) -> Bool,
) -> Result(Int, Nil)
pub fn index_find_last_index(
in array: Uint8Array,
one_that predicate: fn(Int, Int) -> Bool,
) -> Int
pub fn index_for_each(
in array: Uint8Array,
run callback: fn(Int, Int) -> b,
) -> Nil
pub fn index_map(
over array: Uint8Array,
with callback: fn(Int, Int) -> Int,
) -> Uint8Array
pub fn index_of(in array: Uint8Array, value value: Int) -> Int
pub fn index_of_from(
in array: Uint8Array,
value value: Int,
from index: Int,
) -> Int
pub fn index_reduce(
over array: Uint8Array,
from initial: a,
with callback: fn(a, Int, Int) -> a,
) -> a
pub fn index_reduce_right(
over array: Uint8Array,
from initial: a,
with callback: fn(a, Int, Int) -> a,
) -> a
pub fn index_some(
in array: Uint8Array,
satisfying predicate: fn(Int, Int) -> Bool,
) -> Bool
pub fn join(array: Uint8Array, with separator: String) -> String
pub fn keys(of array: Uint8Array) -> List(Int)
pub fn last_index_of(
in array: Uint8Array,
value value: Int,
) -> Int
pub fn last_index_of_from(
in array: Uint8Array,
value value: Int,
from index: Int,
) -> Int
pub fn length(of array: Uint8Array) -> Int
pub fn map(
over array: Uint8Array,
with callback: fn(Int) -> Int,
) -> Uint8Array
pub fn new() -> Uint8Array
pub fn reduce(
over array: Uint8Array,
from initial: a,
with callback: fn(a, Int) -> a,
) -> a
pub fn reduce_right(
over array: Uint8Array,
from initial: a,
with callback: fn(a, Int) -> a,
) -> a
pub fn reverse(array: Uint8Array) -> Uint8Array
pub fn set(
in array: Uint8Array,
values 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(
in array: Uint8Array,
values values: Uint8Array,
offset offset: Int,
) -> Nil
pub fn slice(array: Uint8Array) -> Uint8Array
pub fn slice_from(array: Uint8Array, start: Int) -> Uint8Array
pub fn slice_range(
array: Uint8Array,
from start: Int,
to end: Int,
) -> Uint8Array
pub fn some(
in array: Uint8Array,
satisfying predicate: fn(Int) -> Bool,
) -> Bool
pub fn sort(
array: Uint8Array,
by compare: fn(Int, Int) -> order.Order,
) -> Uint8Array
pub fn subarray(
array: Uint8Array,
from begin: Int,
to 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,
by compare: fn(Int, Int) -> order.Order,
) -> Uint8Array
pub fn values(of array: Uint8Array) -> List(Int)
pub fn with(
array: Uint8Array,
at_index index: Int,
value value: Int,
) -> Uint8Array