null
XuAPI
pub fn null() c_ptrPurpose
The null pointer.
Parameters
No arguments are required.
Returns
c_ptr — a value of this type
#ffiC interoperation helpers for code that calls extern "C" functions. Pointers are c_ptr values: addresses of C memory that Xu cannot borrow check. Everything here that touches memory behind a c_ptr is an unsafe fn, callable only inside `unsafe { }`; the caller vouches that the address is valid for the access. Offsets are in bytes.
nullpub fn null() c_ptrThe null pointer.
No arguments are required.
c_ptr — a value of this type
is_nullpub fn is_null(p c_ptr) boolWhether it is null.
p c_ptrbool — true or false
offsetpub fn offset(p c_ptr, bytes int) c_ptrAddress arithmetic; no access happens.
p c_ptrbytes intc_ptr — a value of this type
addrpub fn addr(p c_ptr) intAddress.
p c_ptrint — a value of this type