跳至主要內容数据类型速查表
学习阁2026/4/26大约 1 分钟基础知识数据类型速查表
| 类型 | 说明 | 大小 | 来源 |
|---|
| os_int8_t | 8 位有符号整数 | 1 字节 | os_types.h:50 |
| os_int16_t | 16 位有符号整数 | 2 字节 | os_types.h:51 |
| os_int32_t | 32 位有符号整数 | 4 字节 | os_types.h:52 |
| os_int64_t | 64 位有符号整数 | 8 字节 | os_types.h:53 |
| os_uint8_t | 8 位无符号整数 | 1 字节 | os_types.h:55 |
| os_uint16_t | 16 位无符号整数 | 2 字节 | os_types.h:56 |
| os_uint32_t | 32 位无符号整数 | 4 字节 | os_types.h:57 |
| os_uint64_t | 64 位无符号整数 | 8 字节 | os_types.h:58 |
| 类型 | 说明 | 大小 | 来源 |
|---|
| os_bool_t | 布尔类型 | 1 字节 | os_types.h:81 |
| os_err_t | 错误码类型 | 4 字节 | os_types.h:98 |
| os_tick_t | 系统节拍类型 | 4 字节 | os_types.h:111 |
| os_size_t | 大小类型 | 4/8 字节 | os_types.h:158 |
| os_base_t | 基础有符号类型 | 4/8 字节 | os_types.h:181 |
| os_ubase_t | 基础无符号类型 | 4/8 字节 | os_types.h:182 |
| 类型 | 说明 | 来源 |
|---|
| os_uintptr_t | 无符号指针类型 | os_types.h:229 |
| os_intptr_t | 有符号指针类型 | os_types.h:230 |
| 类型 | 最小值 | 最大值 | 宏 |
|---|
| os_uint8_t | 0 | 255 | OS_UINT8_MAX |
| os_uint16_t | 0 | 65535 | OS_UINT16_MAX |
| os_uint32_t | 0 | 4294967295 | OS_UINT32_MAX |