null
XuAPI
pub fn null() c_ptr用途
空设备。
参数
无需传入参数。
返回值
c_ptr — 该类型的值
#ffi标准库包 `#ffi`。
nullpub fn null() c_ptr空设备。
无需传入参数。
c_ptr — 该类型的值
is_nullpub fn is_null(p c_ptr) bool判断是否 null。
p c_ptrbool — 是否成立
offsetpub fn offset(p c_ptr, bytes int) c_ptr执行 offset 处理。
p c_ptrbytes intc_ptr — 该类型的值
addrpub fn addr(p c_ptr) int地址。
p c_ptrint — 该类型的值