Bosatsu/IO/Bytes
source code: - test_workspace/Bosatsu/IO/Bytes.bosatsu
public dependencies: Bosatsu/Collection/Array
Index
- Types:
Bytes - Values:
concat_all_Bytes,empty_Bytes,ends_with_Bytes,find_Bytes,foldl_Bytes,from_Array_Int,from_List_Int,get_Bytes,get_map_Bytes,get_or_Bytes,index_in_range_Bytes,size_Bytes,slice_Bytes,starts_with_Bytes,to_Array_Int,to_List_Int,utf8_Char_at,utf8_bytes_from_String,utf8_bytes_to_String
Types
Bytes
type Bytes
Values
concat_all_Bytes
def concat_all_Bytes(chunks: List[Bytes]) -> Bytes
empty_Bytes
references: Bytes
empty_Bytes: Bytes
ends_with_Bytes
def ends_with_Bytes(bytes: Bytes, suffix: Bytes) -> Bool
find_Bytes
def find_Bytes(bytes: Bytes, needle: Bytes, start: Int) -> Int
foldl_Bytes
def foldl_Bytes[a](bytes: Bytes, init: a, fn: (a, Int) -> a) -> a
from_Array_Int
references: Bosatsu/Collection/Array::Array, Bytes, Int
def from_Array_Int(ints: Bosatsu/Collection/Array::Array[Int]) -> Bytes
from_List_Int
def from_List_Int(ints: List[Int]) -> Bytes
get_Bytes
references: Bytes, Int, Option
def get_Bytes(bytes: Bytes, idx: Int) -> Option[Int]
get_map_Bytes
def get_map_Bytes[a](bytes: Bytes, idx: Int, default: () -> a, fn: Int -> a) -> a
get_or_Bytes
def get_or_Bytes(bytes: Bytes, idx: Int, default: () -> Int) -> Int
index_in_range_Bytes
def index_in_range_Bytes(bytes: Bytes, idx: Int) -> Bool
size_Bytes
def size_Bytes(bytes: Bytes) -> Int
slice_Bytes
def slice_Bytes(bytes: Bytes, start: Int, end: Int) -> Bytes
starts_with_Bytes
def starts_with_Bytes(bytes: Bytes, prefix: Bytes) -> Bool
to_Array_Int
references: Bosatsu/Collection/Array::Array, Bytes, Int
def to_Array_Int(bytes: Bytes) -> Bosatsu/Collection/Array::Array[Int]
to_List_Int
def to_List_Int(bytes: Bytes) -> List[Int]
utf8_Char_at
references: Bytes, Char, Int, Option
def utf8_Char_at(bytes: Bytes, idx: Int) -> Option[Char]
utf8_bytes_from_String
def utf8_bytes_from_String(str: String) -> Bytes
utf8_bytes_to_String
references: Bytes, Option, String
def utf8_bytes_to_String(bytes: Bytes) -> Option[String]