Files
NapCatQQ/.pnpm-store/v3/files/f2/7d6874cf1e95592881607804ed5d9dc2c4a2426b8b2d7deb5a6ab2d8ecd5d015a13e79d9b539820a510742da2013f4304622f281d06cc6d1200cfe755a8c19
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

42 lines
1.3 KiB
Plaintext

import type { Uint8Array_ } from '../../types/index.js';
/**
* A runtime-agnostic collection of methods for working with Uint8Arrays
* @module
*/
/**
* Make sure two Uint8Arrays are deeply equivalent
*/
export declare function areEqual(array1: Uint8Array_, array2: Uint8Array_): boolean;
/**
* Convert a Uint8Array to Hexadecimal.
*
* A replacement for `Buffer.toString('hex')`
*/
export declare function toHex(array: Uint8Array_): string;
/**
* Convert a hexadecimal string to isoUint8Array.
*
* A replacement for `Buffer.from('...', 'hex')`
*/
export declare function fromHex(hex: string): Uint8Array_;
/**
* Combine multiple Uint8Arrays into a single Uint8Array
*/
export declare function concat(arrays: Uint8Array_[]): Uint8Array_;
/**
* Convert bytes into a UTF-8 string
*/
export declare function toUTF8String(array: Uint8Array_): string;
/**
* Convert a UTF-8 string back into bytes
*/
export declare function fromUTF8String(utf8String: string): Uint8Array_;
/**
* Convert an ASCII string to Uint8Array
*/
export declare function fromASCIIString(value: string): Uint8Array_;
/**
* Prepare a DataView we can slice our way around in as we parse the bytes in a Uint8Array
*/
export declare function toDataView(array: Uint8Array_): DataView;
//# sourceMappingURL=isoUint8Array.d.ts.map