mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
/**
|
|
* @name compactAddLength
|
|
* @description Adds a length prefix to the input value
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { compactAddLength } from '@pezkuwi/util';
|
|
*
|
|
* console.log(compactAddLength(new Uint8Array([0xde, 0xad, 0xbe, 0xef]))); // Uint8Array([4 << 2, 0xde, 0xad, 0xbe, 0xef])
|
|
* ```
|
|
*/
|
|
export declare function compactAddLength(input: Uint8Array): Uint8Array;
|