XU XUv0.13.1
EN

#runtime/core

导入方式: #runtime/core

公开 API: 185 函数, 0 方法, 1 类型, 0 常量, 0 方法集

标准库包 `#runtime/core`。

base64_encode

XuAPI
pub fn base64_encode(src &string, alphabet &string, pad bool) string

用途

base64编码。

参数

src &string
源数据(只读借用,调用方仍持有原值;类型 &string)
alphabet &string
alphabet(只读借用,调用方仍持有原值;类型 &string)
pad bool
pad(bool)

返回值

string — 结果字符串

base64_decode

XuAPI
pub fn base64_decode(src &string, alphabet &string) string

用途

base64解码。

参数

src &string
源数据(只读借用,调用方仍持有原值;类型 &string)
alphabet &string
alphabet(只读借用,调用方仍持有原值;类型 &string)

返回值

string — 结果字符串

task_io_progress

XuAPI
pub fn task_io_progress()

用途

执行 task io progress 操作。

参数

无需传入参数。

返回值

不返回值。

task_es_enter

XuAPI
pub fn task_es_enter()

用途

执行 task es enter 操作。

参数

无需传入参数。

返回值

不返回值。

task_es_leave

XuAPI
pub fn task_es_leave()

用途

执行 task es leave 操作。

参数

无需传入参数。

返回值

不返回值。

task_block

XuAPI
pub fn task_block()

用途

执行 task block 操作。

参数

无需传入参数。

返回值

不返回值。

task_spawn

XuAPI
pub fn task_spawn(entry int, fn_addr int, exit_addr int, block int)

用途

执行 task spawn 操作。

参数

entry int
entry(int)
fn_addr int
fn_addr(int)
exit_addr int
exit_addr(int)
block int
block(int)

返回值

不返回值。

task_others

XuAPI
pub fn task_others() bool

用途

执行 task others 操作。

参数

无需传入参数。

返回值

bool — 是否成立

sched_epoch

XuAPI
pub fn sched_epoch() int

用途

执行 sched epoch 操作。

参数

无需传入参数。

返回值

int — 该类型的值

task_yield

XuAPI
pub fn task_yield()

用途

执行 task yield 操作。

参数

无需传入参数。

返回值

不返回值。

chan_ready

XuAPI
pub fn chan_ready(ch int) bool

用途

执行 chan ready 操作。

参数

ch int
字符码(int)

返回值

bool — 是否成立

task_drain

XuAPI
pub fn task_drain()

用途

执行 task drain 操作。

参数

无需传入参数。

返回值

不返回值。

task_exit

XuAPI
pub fn task_exit(t int)

用途

执行 task exit 操作。

参数

t int
t(int)

返回值

不返回值。

chan_new

XuAPI
pub fn chan_new(cap int) int

用途

执行 chan new 操作。

参数

cap int
cap(int)

返回值

int — 该类型的值

chan_retain

XuAPI
pub fn chan_retain(ch int)

用途

执行 chan retain 操作。

参数

ch int
字符码(int)

返回值

不返回值。

chan_release

XuAPI
pub fn chan_release(ch int) int

用途

执行 chan release 操作。

参数

ch int
字符码(int)

返回值

int — 该类型的值

chan_take_unread

XuAPI
pub fn chan_take_unread(ch int, dst int, esize int) int

用途

执行 chan take unread 操作。

参数

ch int
字符码(int)
dst int
目标(int)
esize int
esize(int)

返回值

int — 该类型的值

chan_free

XuAPI
pub fn chan_free(ch int)

用途

执行 chan free 操作。

参数

ch int
字符码(int)

返回值

不返回值。

chan_try_send

XuAPI
pub fn chan_try_send(ch int, src int, esize int) int

用途

执行 chan try send 操作。

参数

ch int
字符码(int)
src int
源数据(int)
esize int
esize(int)

返回值

int — 该类型的值

chan_try_recv

XuAPI
pub fn chan_try_recv(ch int, dst int, esize int) int

用途

执行 chan try recv 操作。

参数

ch int
字符码(int)
dst int
目标(int)
esize int
esize(int)

返回值

int — 该类型的值

chan_send

XuAPI
pub fn chan_send(ch int, src int, esize int)

用途

执行 chan send 操作。

参数

ch int
字符码(int)
src int
源数据(int)
esize int
esize(int)

返回值

不返回值。

chan_recv

XuAPI
pub fn chan_recv(ch int, dst int, esize int) bool

用途

执行 chan recv 操作。

参数

ch int
字符码(int)
dst int
目标(int)
esize int
esize(int)

返回值

bool — 是否成立

chan_close

XuAPI
pub fn chan_close(ch int)

用途

关闭chan。

参数

ch int
字符码(int)

返回值

不返回值。

exit_process

XuAPI
pub fn exit_process(code int)

用途

执行 exit process 操作。

参数

code int
码(int)

返回值

不返回值。

write_fd

XuAPI
pub fn write_fd(fd int, ptr int, n int) int

用途

执行 write fd 操作。

参数

fd int
文件描述符(int)
ptr int
ptr(int)
n int
数量、长度或上限(int)

返回值

int — 该类型的值

alloc

XuAPI
pub fn alloc(size int) int

用途

执行 alloc 处理。

参数

size int
size(int)

返回值

int — 该类型的值

free

XuAPI
pub fn free(p int)

用途

执行 free 处理。

参数

p int
p(int)

返回值

不返回值。

debug_free_enable

XuAPI
pub fn debug_free_enable()

用途

执行 debug free enable 操作。

参数

无需传入参数。

返回值

不返回值。

mem_zero

XuAPI
pub fn mem_zero(p int, n int)

用途

执行 mem zero 操作。

参数

p int
p(int)
n int
数量、长度或上限(int)

返回值

不返回值。

mem_copy

XuAPI
pub fn mem_copy(dst int, src int, n int)

用途

执行 mem copy 操作。

参数

dst int
目标(int)
src int
源数据(int)
n int
数量、长度或上限(int)

返回值

不返回值。

mem_eq

XuAPI
pub fn mem_eq(a int, b int, n int) bool

用途

执行 mem eq 操作。

参数

a int
值(int)
b int
b(int)
n int
数量、长度或上限(int)

返回值

bool — 是否成立

desc_ptr

XuAPI
pub fn desc_ptr(d int) int

用途

执行 desc ptr 操作。

参数

d int
d(int)

返回值

int — 该类型的值

desc_len

XuAPI
pub fn desc_len(d int) int

用途

执行 desc len 操作。

参数

d int
d(int)

返回值

int — 该类型的值

desc_reserve

XuAPI
pub fn desc_reserve(d int, need int, esize int)

用途

执行 desc reserve 操作。

参数

d int
d(int)
need int
need(int)
esize int
esize(int)

返回值

不返回值。

slice_push

XuAPI
pub fn slice_push(d int, elem int, esize int)

用途

切片压入。

参数

d int
d(int)
elem int
elem(int)
esize int
esize(int)

返回值

不返回值。

bytes_new

XuAPI
pub fn bytes_new(out int, src int, n int)

用途

执行 bytes new 操作。

参数

out int
out(int)
src int
源数据(int)
n int
数量、长度或上限(int)

返回值

不返回值。

str_concat

XuAPI
pub fn str_concat(out int, a int, b int)

用途

执行 str concat 操作。

参数

out int
out(int)
a int
值(int)
b int
b(int)

返回值

不返回值。

string_repeat

XuAPI
pub fn string_repeat(s &string, count int) string

用途

字符串重复。

参数

s &string
源字符串(只读借用,调用方仍持有原值;类型 &string)
count int
count(int)

返回值

string — 结果字符串

str_push

XuAPI
pub fn str_push(d int, b int)

用途

执行 str push 操作。

参数

d int
d(int)
b int
b(int)

返回值

不返回值。

str_push_byte

XuAPI
pub fn str_push_byte(d int, value int)

用途

执行 str push byte 操作。

参数

d int
d(int)
value int
value(int)

返回值

不返回值。

str_free

XuAPI
pub fn str_free(d int)

用途

执行 str free 操作。

参数

d int
d(int)

返回值

不返回值。

str_ensure_owned

XuAPI
pub fn str_ensure_owned(d int)

用途

执行 str ensure owned 操作。

参数

d int
d(int)

返回值

不返回值。

str_eq

XuAPI
pub fn str_eq(a int, b int) bool

用途

执行 str eq 操作。

参数

a int
值(int)
b int
b(int)

返回值

bool — 是否成立

str_less

XuAPI
pub fn str_less(a int, b int) bool

用途

执行 str less 操作。

参数

a int
值(int)
b int
b(int)

返回值

bool — 是否成立

str_slice

XuAPI
pub fn str_slice(out int, s int, lo int, hi int)

用途

执行 str slice 操作。

参数

out int
out(int)
s int
s(int)
lo int
lo(int)
hi int
hi(int)

返回值

不返回值。

slice_slice

XuAPI
pub fn slice_slice(out int, a int, lo int, hi int, esize int)

用途

切片切片。

参数

out int
out(int)
a int
值(int)
lo int
lo(int)
hi int
hi(int)
esize int
esize(int)

返回值

不返回值。

str_bytes

XuAPI
pub fn str_bytes(out int, s int)

用途

执行 str bytes 操作。

参数

out int
out(int)
s int
s(int)

返回值

不返回值。

str_runes

XuAPI
pub fn str_runes(out int, s int)

用途

执行 str runes 操作。

参数

out int
out(int)
s int
s(int)

返回值

不返回值。

index_panic

XuAPI
pub fn index_panic(i int, n int)

用途

执行 index panic 操作。

参数

i int
下标或整数(int)
n int
数量、长度或上限(int)

返回值

不返回值。

rt_panic

XuAPI
pub fn rt_panic(kind int)

用途

执行 rt panic 操作。

参数

kind int
类型标签(int)

返回值

不返回值。

slice_check

XuAPI
pub fn slice_check(lo int, hi int, n int)

用途

执行 slice check 操作。

参数

lo int
lo(int)
hi int
hi(int)
n int
数量、长度或上限(int)

返回值

不返回值。

record_test_failure

XuAPI
pub fn record_test_failure()

用途

执行 record test failure 操作。

参数

无需传入参数。

返回值

不返回值。

backtrace

XuAPI
pub fn backtrace(fd int)

用途

执行 backtrace 处理。

参数

fd int
文件描述符(int)

返回值

不返回值。

err_from_str

XuAPI
pub fn err_from_str(msg &string) int

用途

执行 err from str 操作。

参数

msg &string
消息(只读借用,调用方仍持有原值;类型 &string)

返回值

int — 该类型的值

err_msg_copy

XuAPI
pub fn err_msg_copy(out int, box int)

用途

执行 err msg copy 操作。

参数

out int
out(int)
box int
box(int)

返回值

不返回值。

iface_tag_panic

XuAPI
pub fn iface_tag_panic(tag int)

用途

执行 iface tag panic 操作。

参数

tag int
tag(int)

返回值

不返回值。

ffi_call

XuAPI
pub fn ffi_call(fp int, block int)

用途

执行 ffi call 操作。

参数

fp int
fp(int)
block int
block(int)

返回值

不返回值。

ffi_sym

XuAPI
pub fn ffi_sym(idx int, sym int, libs int) int

用途

执行 ffi sym 操作。

参数

idx int
idx(int)
sym int
sym(int)
libs int
libs(int)

返回值

int — 该类型的值

ffi_flush

XuAPI
pub fn ffi_flush()

用途

执行 ffi flush 操作。

参数

无需传入参数。

返回值

不返回值。

ffi_cstr

XuAPI
pub fn ffi_cstr(d int) int

用途

执行 ffi cstr 操作。

参数

d int
d(int)

返回值

int — 该类型的值

ffi_string_from

XuAPI
pub fn ffi_string_from(out int, p int)

用途

执行 ffi string from 操作。

参数

out int
out(int)
p int
p(int)

返回值

不返回值。

ffi_closure_alloc

XuAPI
pub fn ffi_closure_alloc(adapter int, code int, env int, stubs_base int) int

用途

执行 ffi closure alloc 操作。

参数

adapter int
adapter(int)
code int
码(int)
env int
env(int)
stubs_base int
stubs_base(int)

返回值

int — 该类型的值

ffi_closure_take_env

XuAPI
pub fn ffi_closure_take_env(p int, stubs_base int) int

用途

执行 ffi closure take env 操作。

参数

p int
p(int)
stubs_base int
stubs_base(int)

返回值

int — 该类型的值

float64_bits

XuAPI
pub fn float64_bits(f f64) int

用途

执行 float64 bits 操作。

参数

f f64
浮点值

返回值

int — 该类型的值

float64_from_bits

XuAPI
pub fn float64_from_bits(b int) f64

用途

执行 float64 from bits 操作。

参数

b int
b(int)

返回值

f64 — 该类型的值

fnval_error_panic

XuAPI
pub fn fnval_error_panic(e int)

用途

执行 fnval error panic 操作。

参数

e int
e(int)

返回值

不返回值。

host_read_file

XuAPI
pub fn host_read_file(out int, path int) int

用途

主机读取文件。

参数

out int
out(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_write_file

XuAPI
pub fn host_write_file(okp int, path int, data int) int

用途

主机写入文件。

参数

okp int
okp(int)
path int
文件系统路径(int)
data int
数据(int)

返回值

int — 该类型的值

host_read_dir

XuAPI
pub fn host_read_dir(out int, path int) int

用途

主机读取目录部分。

参数

out int
out(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_stat

XuAPI
pub fn host_stat(out int, path int) int

用途

主机元信息。

参数

out int
out(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_mkdir

XuAPI
pub fn host_mkdir(okp int, path int) int

用途

主机建目录。

参数

okp int
okp(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_rename

XuAPI
pub fn host_rename(okp int, from int, to int) int

用途

主机重命名。

参数

okp int
okp(int)
from int
from(int)
to int
to(int)

返回值

int — 该类型的值

host_remove

XuAPI
pub fn host_remove(okp int, path int) int

用途

主机删除。

参数

okp int
okp(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_chmod

XuAPI
pub fn host_chmod(okp int, path int, mode int) int

用途

主机改权限。

参数

okp int
okp(int)
path int
文件系统路径(int)
mode int
模式(int)

返回值

int — 该类型的值

host_chdir

XuAPI
pub fn host_chdir(okp int, path int) int

用途

主机改目录。

参数

okp int
okp(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_os_open

XuAPI
pub fn host_os_open(okp int, path int, mode int) int

用途

打开主机os。

参数

okp int
okp(int)
path int
文件系统路径(int)
mode int
模式(int)

返回值

int — 该类型的值

host_fd_read

XuAPI
pub fn host_fd_read(out int, fd int, max int) int

用途

读取主机fd。

参数

out int
out(int)
fd int
文件描述符(int)
max int
上限(int)

返回值

int — 该类型的值

host_fd_write

XuAPI
pub fn host_fd_write(okp int, fd int, data int) int

用途

写入主机fd。

参数

okp int
okp(int)
fd int
文件描述符(int)
data int
数据(int)

返回值

int — 该类型的值

host_fd_close

XuAPI
pub fn host_fd_close(okp int, fd int) int

用途

关闭主机fd。

参数

okp int
okp(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_fd_seek

XuAPI
pub fn host_fd_seek(okp int, fd int, off int, whence int) int

用途

执行 host fd seek 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
off int
偏移(int)
whence int
定位基准:0 起点 / 1 当前 / 2 末尾(int)

返回值

int — 该类型的值

host_pipe

XuAPI
pub fn host_pipe(okp int) int

用途

执行 host pipe 操作。

参数

okp int
okp(int)

返回值

int — 该类型的值

host_fd_peek_read

XuAPI
pub fn host_fd_peek_read(okp int, fd int) int

用途

读取主机fd预看。

参数

okp int
okp(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_random_fill

XuAPI
pub fn host_random_fill(out int, n int) int

用途

执行 host random fill 操作。

参数

out int
out(int)
n int
数量、长度或上限(int)

返回值

int — 该类型的值

host_interface_data

XuAPI
pub fn host_interface_data(out int, name int) int

用途

执行 host interface data 操作。

参数

out int
out(int)
name int
名字(int)

返回值

int — 该类型的值

host_socket

XuAPI
pub fn host_socket(okp int, domain int, typ int, proto int) int

用途

主机套接字。

参数

okp int
okp(int)
domain int
domain(int)
typ int
typ(int)
proto int
proto(int)

返回值

int — 该类型的值

host_bind4

XuAPI
pub fn host_bind4(okp int, fd int, a int, b int, c int, d int, port int) int

用途

主机IPv4 bind。

参数

okp int
okp(int)
fd int
文件描述符(int)
a int
值(int)
b int
b(int)
c int
字节或字符码(int)
d int
d(int)
port int
端口(int)

返回值

int — 该类型的值

host_connect4

XuAPI
pub fn host_connect4(okp int, fd int, a int, b int, c int, d int, port int) int

用途

主机IPv4 connect。

参数

okp int
okp(int)
fd int
文件描述符(int)
a int
值(int)
b int
b(int)
c int
字节或字符码(int)
d int
d(int)
port int
端口(int)

返回值

int — 该类型的值

host_bind6

XuAPI
pub fn host_bind6(okp int, fd int, ip int, port int) int

用途

主机bind6。

参数

okp int
okp(int)
fd int
文件描述符(int)
ip int
ip(int)
port int
端口(int)

返回值

int — 该类型的值

host_connect6

XuAPI
pub fn host_connect6(okp int, fd int, ip int, port int) int

用途

主机connect6。

参数

okp int
okp(int)
fd int
文件描述符(int)
ip int
ip(int)
port int
端口(int)

返回值

int — 该类型的值

host_bind_unix

XuAPI
pub fn host_bind_unix(okp int, fd int, path int) int

用途

执行 host bind unix 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_connect_unix

XuAPI
pub fn host_connect_unix(okp int, fd int, path int) int

用途

执行 host connect unix 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
path int
文件系统路径(int)

返回值

int — 该类型的值

host_listen

XuAPI
pub fn host_listen(okp int, fd int, backlog int) int

用途

监听主机。

参数

okp int
okp(int)
fd int
文件描述符(int)
backlog int
backlog(int)

返回值

int — 该类型的值

host_accept

XuAPI
pub fn host_accept(okp int, fd int) int

用途

主机接受。

参数

okp int
okp(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_sendto

XuAPI
pub fn host_sendto(okp int, fd int, addr int, data int) int

用途

主机发送数据报。

参数

okp int
okp(int)
fd int
文件描述符(int)
addr int
地址(int)
data int
数据(int)

返回值

int — 该类型的值

host_recvfrom

XuAPI
pub fn host_recvfrom(out int, fd int, max int) int

用途

主机收数据报。

参数

out int
out(int)
fd int
文件描述符(int)
max int
上限(int)

返回值

int — 该类型的值

host_setsockopt_timeo

XuAPI
pub fn host_setsockopt_timeo(okp int, fd int, ns int) int

用途

执行 host setsockopt timeo 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
ns int
ns(int)

返回值

int — 该类型的值

host_setsockopt

XuAPI
pub fn host_setsockopt(okp int, fd int, level int, opt int, value int) int

用途

执行 host setsockopt 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
level int
level(int)
opt int
opt(int)
value int
value(int)

返回值

int — 该类型的值

host_socket_close

XuAPI
pub fn host_socket_close(okp int, fd int) int

用途

关闭主机套接字。

参数

okp int
okp(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_socket_poll

XuAPI
pub fn host_socket_poll(okp int, fd int, events int) int

用途

执行 host socket poll 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
events int
events(int)

返回值

int — 该类型的值

host_socket_wait

XuAPI
pub fn host_socket_wait(okp int, fd int, events int, timeout_ns int) int

用途

主机套接字等待。

参数

okp int
okp(int)
fd int
文件描述符(int)
events int
events(int)
timeout_ns int
超时(纳秒)(int)

返回值

int — 该类型的值

host_getsockname

XuAPI
pub fn host_getsockname(out int, fd int) int

用途

执行 host getsockname 操作。

参数

out int
out(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_getpeername

XuAPI
pub fn host_getpeername(out int, fd int) int

用途

执行 host getpeername 操作。

参数

out int
out(int)
fd int
文件描述符(int)

返回值

int — 该类型的值

host_shutdown

XuAPI
pub fn host_shutdown(okp int, fd int, how int) int

用途

执行 host shutdown 操作。

参数

okp int
okp(int)
fd int
文件描述符(int)
how int
how(int)

返回值

int — 该类型的值

host_string_from_byte

XuAPI
pub fn host_string_from_byte(out int, b int)

用途

执行 host string from byte 操作。

参数

out int
out(int)
b int
b(int)

返回值

不返回值。

host_string_from_bytes

XuAPI
pub fn host_string_from_bytes(out int, arr int, lo int, hi int)

用途

主机字符串从字节。

参数

out int
out(int)
arr int
arr(int)
lo int
lo(int)
hi int
hi(int)

返回值

不返回值。

host_args

XuAPI
pub fn host_args(out int)

用途

执行 host args 操作。

参数

out int
out(int)

返回值

不返回值。

host_env_list

XuAPI
pub fn host_env_list(out int)

用途

执行 host env list 操作。

参数

out int
out(int)

返回值

不返回值。

host_env_get

XuAPI
pub fn host_env_get(out int, name int)

用途

执行 host env get 操作。

参数

out int
out(int)
name int
名字(int)

返回值

不返回值。

host_tmp_dir

XuAPI
pub fn host_tmp_dir(out int)

用途

执行 host tmp dir 操作。

参数

out int
out(int)

返回值

不返回值。

host_cwd

XuAPI
pub fn host_cwd(out int)

用途

执行 host cwd 操作。

参数

out int
out(int)

返回值

不返回值。

host_host_name

XuAPI
pub fn host_host_name(out int)

用途

主机主机名称。

参数

out int
out(int)

返回值

不返回值。

host_pid

XuAPI
pub fn host_pid() int

用途

主机进程 id。

参数

无需传入参数。

返回值

int — 该类型的值

host_ppid

XuAPI
pub fn host_ppid() int

用途

执行 host ppid 操作。

参数

无需传入参数。

返回值

int — 该类型的值

host_uid

XuAPI
pub fn host_uid() int

用途

主机用户 id。

参数

无需传入参数。

返回值

int — 该类型的值

host_euid

XuAPI
pub fn host_euid() int

用途

执行 host euid 操作。

参数

无需传入参数。

返回值

int — 该类型的值

host_gid

XuAPI
pub fn host_gid() int

用途

主机组 id。

参数

无需传入参数。

返回值

int — 该类型的值

host_egid

XuAPI
pub fn host_egid() int

用途

执行 host egid 操作。

参数

无需传入参数。

返回值

int — 该类型的值

host_pagesize

XuAPI
pub fn host_pagesize() int

用途

主机页大小。

参数

无需传入参数。

返回值

int — 该类型的值

host_now_ns

XuAPI
pub fn host_now_ns() int

用途

主机当前时间纳秒。

参数

无需传入参数。

返回值

int — 该类型的值

host_wall_time_ns

XuAPI
pub fn host_wall_time_ns() int

用途

执行 host wall time ns 操作。

参数

无需传入参数。

返回值

int — 该类型的值

host_sleep_ns

XuAPI
pub fn host_sleep_ns(ns int)

用途

主机睡眠纳秒。

参数

ns int
ns(int)

返回值

不返回值。

host_wait_cancel

XuAPI
pub fn host_wait_cancel(done int, ns int) bool

用途

主机等待取消。

参数

done int
done(int)
ns int
ns(int)

返回值

bool — 是否成立

rt_signal_notify

XuAPI
pub fn rt_signal_notify(c chan int, sig int)

用途

执行 rt signal notify 操作。

参数

c chan int
字节或字符码(通道;类型 chan int)
sig int
sig(int)

返回值

不返回值。

rt_signal_stop

XuAPI
pub fn rt_signal_stop(c chan int)

用途

执行 rt signal stop 操作。

参数

c chan int
字节或字符码(通道;类型 chan int)

返回值

不返回值。

rt_signal_ignore

XuAPI
pub fn rt_signal_ignore(sig int)

用途

执行 rt signal ignore 操作。

参数

sig int
sig(int)

返回值

不返回值。

rt_signal_dispatch

XuAPI
pub fn rt_signal_dispatch(sig int) bool

用途

执行 rt signal dispatch 操作。

参数

sig int
sig(int)

返回值

bool — 是否成立

rt_signal_has_waiters

XuAPI
pub fn rt_signal_has_waiters() bool

用途

执行 rt signal has waiters 操作。

参数

无需传入参数。

返回值

bool — 是否成立

host_system

XuAPI
pub fn host_system(cmd int) int

用途

主机系统。

参数

cmd int
cmd(int)

返回值

int — 该类型的值

host_exec

XuAPI
pub fn host_exec(path int, blob int, redir int, has_deadline bool, deadline int) int

用途

执行 host exec 操作。

参数

path int
文件系统路径(int)
blob int
blob(int)
redir int
redir(int)
has_deadline bool
has_deadline(bool)
deadline int
deadline(int)

返回值

int — 该类型的值

host_ui_run

XuAPI
pub fn host_ui_run(path int) int

用途

执行 host ui run 操作。

参数

path int
文件系统路径(int)

返回值

int — 该类型的值

wasi_sys

XuAPI
pub fn wasi_sys(nr int, a int, b int, c int, d int, e int, f int) int

用途

执行 wasi sys 操作。

参数

nr int
nr(int)
a int
值(int)
b int
b(int)
c int
字节或字符码(int)
d int
d(int)
e int
e(int)
f int
回调或格式串(int)

返回值

int — 该类型的值

host_security_store

XuAPI
pub fn host_security_store(out int, name int) int

用途

执行 host security store 操作。

参数

out int
out(int)
name int
名字(int)

返回值

int — 该类型的值

struct WinSocketWatch

XuAPI
pub struct WinSocketWatch {
    pub fd int
    pub interest int
    pub token int
    pub ready int
}

用途

承载 fd、interest、token、ready 等属性的结构体。

公开字段

fd int
文件描述符
interest int
字段(int)
token int
字段(int)
ready int
字段(int)

win_wait_sockets

XuAPI
pub fn win_wait_sockets(watches $&[]WinSocketWatch, timeout_ns int) int

用途

执行 win wait sockets 操作。

参数

watches $&[]WinSocketWatch
watches(独占借用,可修改原值;类型 $&[]WinSocketWatch)
timeout_ns int
超时(纳秒)(int)

返回值

int — 该类型的值

host_xacp_output_init

XuAPI
pub fn host_xacp_output_init(capacity int) int

用途

执行 host xacp output init 操作。

参数

capacity int
capacity(int)

返回值

int — 该类型的值

host_xacp_output_read

XuAPI
pub fn host_xacp_output_read(out int, fd int, since int, limit int)

用途

读取主机xacp输出。

参数

out int
out(int)
fd int
文件描述符(int)
since int
since(int)
limit int
limit(int)

返回值

不返回值。

type_assert_fail

XuAPI
pub fn type_assert_fail()

用途

执行 type assert fail 操作。

参数

无需传入参数。

返回值

不返回值。

assert_fail

XuAPI
pub fn assert_fail(path int, line int, col int, msg int)

用途

执行 assert fail 操作。

参数

path int
文件系统路径(int)
line int
line(int)
col int
col(int)
msg int
消息(int)

返回值

不返回值。

intrin_make_string

XuAPI
pub fn intrin_make_string(out int, n int)

用途

执行 intrin make string 操作。

参数

out int
out(int)
n int
数量、长度或上限(int)

返回值

不返回值。

intrin_make_ints

XuAPI
pub fn intrin_make_ints(out int, n int)

用途

执行 intrin make ints 操作。

参数

out int
out(int)
n int
数量、长度或上限(int)

返回值

不返回值。

intrin_count_byte

XuAPI
pub fn intrin_count_byte(s int, b int) int

用途

执行 intrin count byte 操作。

参数

s int
s(int)
b int
b(int)

返回值

int — 该类型的值

intrin_find_byte

XuAPI
pub fn intrin_find_byte(s int, b int, from int) int

用途

执行 intrin find byte 操作。

参数

s int
s(int)
b int
b(int)
from int
from(int)

返回值

int — 该类型的值

string_replace_byte

XuAPI
pub fn string_replace_byte(src &string, old_byte int, new_byte int) string

用途

执行 string replace byte 操作。

参数

src &string
源数据(只读借用,调用方仍持有原值;类型 &string)
old_byte int
old_byte(int)
new_byte int
new_byte(int)

返回值

string — 结果字符串

intrin_split_byte

XuAPI
pub fn intrin_split_byte(out int, s int, b int)

用途

执行 intrin split byte 操作。

参数

out int
out(int)
s int
s(int)
b int
b(int)

返回值

不返回值。

intrin_join_strings

XuAPI
pub fn intrin_join_strings(out int, arr int, sep int)

用途

执行 intrin join strings 操作。

参数

out int
out(int)
arr int
arr(int)
sep int
分隔符(int)

返回值

不返回值。

intrin_str_bool

XuAPI
pub fn intrin_str_bool(out int, b bool)

用途

执行 intrin str bool 操作。

参数

out int
out(int)
b bool
b(bool)

返回值

不返回值。

intrin_assert_fail

XuAPI
pub fn intrin_assert_fail(file int, line int, col int, msg int)

用途

执行 intrin assert fail 操作。

参数

file int
file(int)
line int
line(int)
col int
col(int)
msg int
消息(int)

返回值

不返回值。

intrin_atomic_add

XuAPI
pub fn intrin_atomic_add(p int, d int) int

用途

执行 intrin atomic add 操作。

参数

p int
p(int)
d int
d(int)

返回值

int — 该类型的值

intrin_atomic_cas

XuAPI
pub fn intrin_atomic_cas(p int, old int, new int) bool

用途

执行 intrin atomic cas 操作。

参数

p int
p(int)
old int
旧值 / 被替换片段(int)
new int
新值 / 替换成的片段(int)

返回值

bool — 是否成立

u64_div

XuAPI
pub fn u64_div(a int, b int) int

用途

u64除。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

intrin_event_set

XuAPI
pub fn intrin_event_set(out int, op int, handle int, fd int, interest int, token int, timeout int) int

用途

执行 intrin event set 操作。

参数

out int
out(int)
op int
op(int)
handle int
handle(int)
fd int
文件描述符(int)
interest int
interest(int)
token int
token(int)
timeout int
超时(int)

返回值

int — 该类型的值

map_new

XuAPI
pub fn map_new(kstr int, vsize int, cap int) int

用途

执行 map new 操作。

参数

kstr int
kstr(int)
vsize int
vsize(int)
cap int
cap(int)

返回值

int — 该类型的值

map_put_has

XuAPI
pub fn map_put_has(m int, key int, existed_out int) int

用途

执行 map put has 操作。

参数

m int
m(int)
key int
键(int)
existed_out int
existed_out(int)

返回值

int — 该类型的值

map_put

XuAPI
pub fn map_put(m int, key int) int

用途

执行 map put 操作。

参数

m int
m(int)
key int
键(int)

返回值

int — 该类型的值

map_find_val

XuAPI
pub fn map_find_val(m int, key int) int

用途

执行 map find val 操作。

参数

m int
m(int)
key int
键(int)

返回值

int — 该类型的值

map_val_ptr

XuAPI
pub fn map_val_ptr(m int, key int) int

用途

执行 map val ptr 操作。

参数

m int
m(int)
key int
键(int)

返回值

int — 该类型的值

map_has

XuAPI
pub fn map_has(m int, key int) bool

用途

执行 map has 操作。

参数

m int
m(int)
key int
键(int)

返回值

bool — 是否成立

map_len

XuAPI
pub fn map_len(m int) int

用途

执行 map len 操作。

参数

m int
m(int)

返回值

int — 该类型的值

map_delete

XuAPI
pub fn map_delete(m int, key int)

用途

执行 map delete 操作。

参数

m int
m(int)
key int
键(int)

返回值

不返回值。

map_free

XuAPI
pub fn map_free(m int)

用途

执行 map free 操作。

参数

m int
m(int)

返回值

不返回值。

map_take

XuAPI
pub fn map_take(m int, key int, dst int)

用途

执行 map take 操作。

参数

m int
m(int)
key int
键(int)
dst int
目标(int)

返回值

不返回值。

map_next

XuAPI
pub fn map_next(m int, i int) int

用途

执行 map next 操作。

参数

m int
m(int)
i int
下标或整数(int)

返回值

int — 该类型的值

map_key_at

XuAPI
pub fn map_key_at(m int, i int) int

用途

执行 map key at 操作。

参数

m int
m(int)
i int
下标或整数(int)

返回值

int — 该类型的值

map_val_at

XuAPI
pub fn map_val_at(m int, i int) int

用途

执行 map val at 操作。

参数

m int
m(int)
i int
下标或整数(int)

返回值

int — 该类型的值

md5_hex

XuAPI
pub fn md5_hex(h0 int, h1 int, h2 int, h3 int) string

用途

MD5十六进制。

参数

h0 int
h0(int)
h1 int
h1(int)
h2 int
h2(int)
h3 int
h3(int)

返回值

string — 结果字符串

md5_compress_block

XuAPI
pub fn md5_compress_block(h0 $&int, h1 $&int, h2 $&int, h3 $&int, s &string, off int)

用途

MD5压缩块。

参数

h0 $&int
h0(独占借用,可修改原值;类型 $&int)
h1 $&int
h1(独占借用,可修改原值;类型 $&int)
h2 $&int
h2(独占借用,可修改原值;类型 $&int)
h3 $&int
h3(独占借用,可修改原值;类型 $&int)
s &string
源字符串(只读借用,调用方仍持有原值;类型 &string)
off int
偏移(int)

返回值

不返回值。

md5_finish_tail

XuAPI
pub fn md5_finish_tail(h0 $&int, h1 $&int, h2 $&int, h3 $&int, s &string, off int, total int) string

用途

执行 md5 finish tail 操作。

参数

h0 $&int
h0(独占借用,可修改原值;类型 $&int)
h1 $&int
h1(独占借用,可修改原值;类型 $&int)
h2 $&int
h2(独占借用,可修改原值;类型 $&int)
h3 $&int
h3(独占借用,可修改原值;类型 $&int)
s &string
源字符串(只读借用,调用方仍持有原值;类型 &string)
off int
偏移(int)
total int
total(int)

返回值

string — 结果字符串

md5_sum

XuAPI
pub fn md5_sum(s &string) string

用途

MD5摘要。

参数

s &string
源字符串(只读借用,调用方仍持有原值;类型 &string)

返回值

string — 结果字符串

sf_add

XuAPI
pub fn sf_add(a int, b int) int

用途

执行 sf add 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

sf_sub

XuAPI
pub fn sf_sub(a int, b int) int

用途

执行 sf sub 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

sf_mul

XuAPI
pub fn sf_mul(a int, b int) int

用途

执行 sf mul 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

sf_div

XuAPI
pub fn sf_div(a int, b int) int

用途

执行 sf div 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

sf_eq

XuAPI
pub fn sf_eq(a int, b int) bool

用途

执行 sf eq 操作。

参数

a int
值(int)
b int
b(int)

返回值

bool — 是否成立

sf_lt

XuAPI
pub fn sf_lt(a int, b int) bool

用途

执行 sf lt 操作。

参数

a int
值(int)
b int
b(int)

返回值

bool — 是否成立

sf_le

XuAPI
pub fn sf_le(a int, b int) bool

用途

执行 sf le 操作。

参数

a int
值(int)
b int
b(int)

返回值

bool — 是否成立

sf_from_int

XuAPI
pub fn sf_from_int(x int) int

用途

执行 sf from int 操作。

参数

x int
值(int)

返回值

int — 该类型的值

sf_to_int

XuAPI
pub fn sf_to_int(a int) int

用途

执行 sf to int 操作。

参数

a int
值(int)

返回值

int — 该类型的值

sf_div64

XuAPI
pub fn sf_div64(a int, b int) int

用途

执行 sf div64 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值

sf_mod64

XuAPI
pub fn sf_mod64(a int, b int) int

用途

执行 sf mod64 操作。

参数

a int
值(int)
b int
b(int)

返回值

int — 该类型的值