UNPKG

@bare-ts/lib

Version:

TypeScript library for BARE, a compact and simple binary-serialization format

6 lines (5 loc) 314 B
import type { ByteCursor } from "../core/byte-cursor.ts"; export declare function readInt(bc: ByteCursor): bigint; export declare function writeInt(bc: ByteCursor, x: bigint): void; export declare function readIntSafe(bc: ByteCursor): number; export declare function writeIntSafe(bc: ByteCursor, x: number): void;