harmony 鸿蒙Utils Development

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

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.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Subsystems

harmony 鸿蒙AI Framework Development Guide

harmony 鸿蒙NNRt Access Adaptation

harmony 鸿蒙Application Privilege Configuration

harmony 鸿蒙Development Example

harmony 鸿蒙Setting Up a Development Environment

harmony 鸿蒙Development Guidelines

harmony 鸿蒙Application Framework Overview

harmony 鸿蒙ArkCompiler Development

harmony 鸿蒙Custom Window Title Bar Development

0  赞