chore: update to version 14.0.11 and align website URLs

This commit is contained in:
2026-01-11 11:34:13 +03:00
parent ef74383349
commit 19c8d69bd8
1499 changed files with 53633 additions and 89 deletions
+20
View File
@@ -0,0 +1,20 @@
import { u8aConcatStrict } from '../u8a/index.js';
import { compactToU8a } from './toU8a.js';
/**
* @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 function compactAddLength(input) {
return u8aConcatStrict([
compactToU8a(input.length),
input
]);
}