Expand description
This module contains type aliases for C’s platform-specific types and fixed-width integer types.
The platform-specific types definitions were taken from rust-lang/rust in library/core/src/ffi/primitives.rs
The fixed-width integer aliases are deprecated: use the Rust types instead.
Type Aliases§
- c_char
- Equivalent to C’s
chartype. - c_
double - Equivalent to C’s
doubletype. - c_float
- Equivalent to C’s
floattype. - c_int
- Equivalent to C’s
signed int(int) type. - c_long
- Equivalent to C’s
signed long(long) type. - c_
longlong - Equivalent to C’s
signed long long(long long) type. - c_schar
- Equivalent to C’s
signed chartype. - c_short
- Equivalent to C’s
signed short(short) type. - c_uchar
- Equivalent to C’s
unsigned chartype. - c_uint
- Equivalent to C’s
unsigned inttype. - c_ulong
- Equivalent to C’s
unsigned longtype. - c_
ulonglong - Equivalent to C’s
unsigned long longtype. - c_
ushort - Equivalent to C’s
unsigned shorttype. - int8_t
Deprecated - int16_t
Deprecated - int32_t
Deprecated - int64_t
Deprecated - uint8_t
Deprecated - uint16_
t Deprecated - uint32_
t Deprecated - uint64_
t Deprecated