# protobufjs_utf8
**Repository Path**: ArkTSCentralRepository/protobufjs_utf8
## Basic Information
- **Project Name**: protobufjs_utf8
- **Description**: A minimal UTF8 implementation for number arrays.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-04-27
- **Last Updated**: 2025-04-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# protobufjs-utf8
基于protobufjs-utf8原库1.1.0版本进行适配, 所有功能代码已经转换为`ArkTS`文件
## Install
```sh
ohpm install protobufjs-utf8
```
API
---
* **utf8.length(string: `string`): `number`**
Calculates the UTF8 byte length of a string.
* **utf8.read(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**
Reads UTF8 bytes as a string.
* **utf8.write(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**
Writes a string as UTF8 bytes.
**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause)