bare::ffi::types
API 参考只有英文版,由标准库源代码中的英文文档注释生成。
C's integer and float types under their C names,
as the target's C compiler sizes them. Each is an alias: on one target
c_int and i32 are the same type. long is 32 bits on Windows and
on 32-bit targets, wchar_t 16 bits on Windows.
Structs
c_voidSource
pub struct c_voidC's void, only behind a pointer: CPtr<c_void> is a void*.
Type aliases
c_scharSource
pub type c_schar = i8C signed char.
c_ucharSource
pub type c_uchar = u8C unsigned char.
c_shortSource
pub type c_short = i16C short.
c_ushortSource
pub type c_ushort = u16C unsigned short.
c_intSource
pub type c_int = i32C int.
c_uintSource
pub type c_uint = u32C unsigned int.
c_longSource
pub type c_long = i32C long: 32 bits on Windows and 32-bit targets, else 64.
c_longSource
pub type c_long = i64C long: 32 bits on Windows and 32-bit targets, else 64.
c_ulongSource
pub type c_ulong = u32C unsigned long: 32 bits on Windows and 32-bit targets, else 64.
c_ulongSource
pub type c_ulong = u64C unsigned long: 32 bits on Windows and 32-bit targets, else 64.
c_longlongSource
pub type c_longlong = i64C long long.
c_ulonglongSource
pub type c_ulonglong = u64C unsigned long long.
c_size_tSource
pub type c_size_t = usizeC size_t.
c_ssize_tSource
pub type c_ssize_t = isizeC ssize_t.
c_ptrdiff_tSource
pub type c_ptrdiff_t = isizeC ptrdiff_t.
c_intptr_tSource
pub type c_intptr_t = isizeC intptr_t.
c_uintptr_tSource
pub type c_uintptr_t = usizeC uintptr_t.
c_wcharSource
pub type c_wchar = u16C wchar_t: a UTF-16 unit on Windows, unsigned on Linux on Arm.
c_wcharSource
pub type c_wchar = u32c_wcharSource
pub type c_wchar = i32C wchar_t: a UTF-16 unit on Windows, unsigned on Linux on Arm.
c_floatSource
pub type c_float = f32C float.
c_doubleSource
pub type c_double = f64C double.