iobuffer
Version:
Read and write binary data on ArrayBuffers
14 lines • 391 B
TypeScript
/**
* Decode bytes to text
* @param bytes - Bytes to decode
* @param encoding - Text encoding
* @returns The decoded text
*/
export declare function decode(bytes: Uint8Array, encoding?: string): string;
/**
* Encode text to utf8
* @param str - Text to encode
* @returns The encoded bytes
*/
export declare function encode(str: string): Uint8Array;
//# sourceMappingURL=text.d.ts.map