Skip to content

Conversation

@fool-cat
Copy link

  • 新增 jsonb_number_t 根据平台自动选择类型 (32位用float, 64位用double)
  • API参数 double→jsonb_number_t, 向后兼容
  • sprintf→snprintf 防止缓冲区溢出
  • 添加 C89 snprintf 兼容层
  • 支持手动 JSONB_USE_FLOAT/DOUBLE 覆盖

适用于嵌入式/单片机场景节省内存提升序列化效率,64位系统保持精度

- 新增 jsonb_number_t 根据平台自动选择类型 (32位用float, 64位用double)
- API参数 double→jsonb_number_t, 向后兼容
- sprintf→snprintf 防止缓冲区溢出
- 添加 C89 snprintf 兼容层
- 支持手动 JSONB_USE_FLOAT/DOUBLE 覆盖

适用于嵌入式/单片机场景节省内存提升序列化效率,64位系统保持精度
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant