PreviousUpNext

14.2.2  Byte

The standard library Byte api defines access to unsigned eight-bit values.

The Byte api is implemented by the byte package.

The Byte api source code is in src/lib/std/src/byte.api.

The above information is manually maintained and may contain errors.

api {
    byte_to_char : one_byte_unt::Unt -> Char;
    char_to_byte : Char -> one_byte_unt::Unt;
    bytes_to_string : vector_of_one_byte_unts::Vector -> String;
    string_to_bytes : String -> vector_of_one_byte_unts::Vector;
    unpack_string_vector : vector_slice_of_one_byte_unts::Slice -> String;
    unpack_string : rw_vector_slice_of_one_byte_unts::Slice -> String;
    pack_string : (rw_vector_of_one_byte_unts::Rw_Vector , Int , Substring) -> Void;
    reverse_byte_bits : one_byte_unt::Unt -> one_byte_unt::Unt;
    string_to_hex : String -> String;
    bytes_to_hex : vector_of_one_byte_unts::Vector -> String;
    string_to_ascii : String -> String;
    bytes_to_ascii : vector_of_one_byte_unts::Vector -> String;};


Comments and suggestions to: bugs@mythryl.org

PreviousUpNext