@smartdcc/gbcs-parser
Version:
GBCS parser based on henrygiraldo.github.io
23 lines • 937 B
TypeScript
export declare class Uint8ArrayWrapper {
readonly buffer: Uint8Array;
constructor(buffer: Uint8Array);
byte(i: number): number;
get length(): number;
toString(): string;
}
export interface Slice {
input: Uint8ArrayWrapper;
index: number;
end: number;
}
export declare const monthsInYear: Record<number, string>;
export declare const daysInWeek: Record<number, string>;
export declare const messageCodes: Record<number, string>;
export declare const alertCodes: Record<number, string>;
export declare const getAlertCodeName: (alertCode: number) => string;
export declare function toHex(number: number, bits: number): string;
export declare function parseHexString(text: string): Slice;
export declare function parseBase64String(text: string): Slice;
export declare function getBytes(x: Slice, n: number): Slice;
export declare function getDecimalString(x: Slice): string;
//# sourceMappingURL=util.d.ts.map