UNPKG

ais-web

Version:

Compact AIS decoder in TypeScript for browser and web apps

19 lines (18 loc) 534 B
/** * Utility functions for AIS bitfield encoding and decoding. */ export declare function encodeBitField(fields: Array<{ value: any; length: number; signed?: boolean; ascii?: boolean; }>): string; export declare function to6BitAscii(bits: string): string; export declare function from6BitAscii(payload: string, fillBits: number): string; export declare function parseBitField(bits: string, fields: Array<{ key: string; start: number; length: number; signed?: boolean; ascii?: boolean; }>): any;