harmony 鸿蒙Utils

  • 2022-08-09
  • 浏览 (858)

Utils

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

Related Documents

Utils Development Guide

Repositories Involved

Utils

commonlibrary_c_utils

commonlibrary_ets_utils

commonlibrary_utils_lite

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkCompiler Runtime

harmony 鸿蒙DeviceProfile

harmony 鸿蒙System Ability Manager

harmony 鸿蒙Security

harmony 鸿蒙Ability Framework

harmony 鸿蒙Account

harmony 鸿蒙AI

harmony 鸿蒙ArkUI

harmony 鸿蒙Bundle Management

harmony 鸿蒙Common Event and Notification

0  赞