prelude

Standard Library Prelude

Structs

Timespec

struct Timespec {
    tv_sec: i64
    tv_nsec: i64
}

Functions

FunctionDescription
set_byte
get_byte
fmt_i64
fmt_hex
str_len
str_eq
str_copy
mem_set
eprint_str
print_str
print_int
fs_read_file
fs_write_file
fs_append_file
fs_exists
fs_unlink
fs_mkdir
fs_file_size
time_now_ns
time_now_us
time_now_ms
time_sleep_ns
time_sleep_ms
time_elapsed_ns
time_unix_secs

Details

set_byte

fn set_byte(buf: &i8, off: i64, val: i64)

get_byte

fn get_byte(buf: &i8, off: i64) -> i64

fmt_i64

fn fmt_i64(buf: &i8, val: i64) -> i64

fmt_hex

fn fmt_hex(buf: &i8, val: i64) -> i64

str_len

fn str_len(s: &i8) -> i64

str_eq

fn str_eq(a: &i8, b: &i8) -> i64

str_copy

fn str_copy(dst: &i8, src: &i8, len: i64) -> i64

mem_set

fn mem_set(dst: &i8, val: i64, len: i64)

eprint_str

fn eprint_str(s: &i8, len: i64)
fn print_str(s: &i8, len: i64)
fn print_int(val: i64)

fs_read_file

fn fs_read_file(path: &i8, buf: &i8, max_bytes: i64) -> i64

fs_write_file

fn fs_write_file(path: &i8, data: &i8, len: i64) -> i64

fs_append_file

fn fs_append_file(path: &i8, data: &i8, len: i64) -> i64

fs_exists

fn fs_exists(path: &i8) -> i64
fn fs_unlink(path: &i8) -> i64

fs_mkdir

fn fs_mkdir(path: &i8) -> i64

fs_file_size

fn fs_file_size(path: &i8) -> i64

time_now_ns

fn time_now_ns() -> i64

time_now_us

fn time_now_us() -> i64

time_now_ms

fn time_now_ms() -> i64

time_sleep_ns

fn time_sleep_ns(ns: i64)

time_sleep_ms

fn time_sleep_ms(ms: i64)

time_elapsed_ns

fn time_elapsed_ns(start_ns: i64) -> i64

time_unix_secs

fn time_unix_secs() -> i64