+20
-0
@@ -10,4 +10,24 @@ /** | ||
| export declare function fromBigInt(integer: bigint): number[]; | ||
| /** | ||
| * @example Basic Usage | ||
| * ```ts | ||
| * import * as Bleb from "bleb" | ||
| * | ||
| * console.log(Bleb.toBigInt([ 232, 6 ])) // 1000n | ||
| * ``` | ||
| * | ||
| * @example Less-Basic Usage | ||
| * ```ts | ||
| * import * as Bleb from "bleb" | ||
| * | ||
| * // some data with bleb at byte offset 2 | ||
| * const u8View = new Uint8Array([ 177, 218, 232, 6, 197, 165, 75, 177 ]) | ||
| * const index = { $: 2 } | ||
| * | ||
| * console.log(Bleb.toBigInt(u8View, index)) // 1000n | ||
| * console.log(index) // { $: 4 } | ||
| * ``` | ||
| */ | ||
| export declare function toBigInt(data: Record<number, number>, index?: { | ||
| $: number; | ||
| }): bigint; |
+1
-1
| { | ||
| "name": "bleb", | ||
| "version": "0.0.2", | ||
| "version": "0.1.0-1fdc6c6", | ||
| "description": "Better LEB128", | ||
@@ -5,0 +5,0 @@ "repository": "github:samualtnorman/bleb", |
3965
13.09%55
57.14%