• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-1,000915

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024702 167

README_zh.mdD12-May-2024956 2613

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024299 1515

README.md

1# util Tool Function - LruBuffer
2
3
4
5### Introduction
6
7This sample shows the use of the **LruBuffer** API in Extended TypeScript (eTS).
8
9### Usage
10
11The home page of the sample app consists of two parts: text box and button area. The button area provides the following buttons: **Initialize buffer**, **Get buffer capacity**, **Update buffer capacity**, **Get buffer string**, **Add key-value pair**, **Get value of key**, **Get all key-value pairs**, **Delete key and value**, **Clear all key-value pairs**, and **View operation record**. You can touch these buttons and view the corresponding operation results in the text box.
12
13### Constraints
14
15This sample can only be run on standard-system devices.
16

README_zh.md

1# 缓冲区
2
3### 简介
4
5本示例展示了在eTS中缓冲区的初始化和api接口的使用。实现效果如下:
6
7![main](screenshots/device/main.png)
8
9### 相关概念
10
11缓冲区:用于临时存储键值对类型的数据,使用时必须先初始化缓冲区大小。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.在首页中分为两个区域,文本显示框和按钮区域,点击**初始化缓冲区**、**获取缓冲区容量**、**更新缓冲区容量**、**获取缓冲区字符串**、**添加键值对**、**获取键对应的值**、**获取所有键值对**、**删除指定键及其关联值**、**清除所有键值对**、**查看操作记录**按钮可以分别执行对应的操作并在文本显示框中显示操作的结果。
20
21### 约束与限制
22
231.本示例仅支持标准系统上运行。
24
252.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。
26