1 Star 0 Fork 5.4K

lichaochen / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
subsys-utils-guide.md 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
Annie_wang 提交于 2023-02-15 17:16 . update docs

Utils Development

Introduction

Utils provides OpenHarmony basic components, which provide enhanced C, C++, and JS APIs for OpenHarmony service subsystems and upper-layer applications. Utils provides the following components in /commonlibrary:

/commonlibrary
    ├── c_utils                  # c and c++ utils.
    ├── ets_utils                # extended TypeScript (eTS) utils.
    └── utils_lite               # Utils in c and JS for LiteOS.

The following lists the functions provided by each utils.

c_utils

  • Enhanced APIs for operations related to files, paths, and strings
  • APIs for read/write locks, semaphores, timers, threads, and thread pools
  • APIs for security data containers and data serialization
  • Error codes for each subsystem

ets_utils

  • JS APIs for URI, URL, and XML operations
  • JS APIs for string encoding and decoding
  • JS APIs for process-related operations
  • Multithreading capability in JS

utils_lite

  • Hardware Abstraction Layer (HAL) APIs for file operations
  • APIs for internal functions, such as the timer

Development Guide

c_utils

FAQs

c_utils FAQs

See c_utils.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
其他
1
https://gitee.com/lichaochen_huawei/docs.git
git@gitee.com:lichaochen_huawei/docs.git
lichaochen_huawei
docs
docs
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891