UNPKG

quick-struct

Version:

C like style to write struct layout, and it can convert variable length array or string automatically. It can be used in Node.js and Browser

14 lines (13 loc) 419 B
export interface ITYPE_TO_CODE { [idx: string]: number; } export declare const TYPE_TO_CODE: ITYPE_TO_CODE; export interface ICODE_TO_TYPE { [idx: number]: string | number; } export declare const CODE_TO_TYPE: ICODE_TO_TYPE; export declare const CODE_TO_DV_TYPE: (string | number)[]; export interface ICODE_TO_BYTE_SIZE { [idx: number]: number; } export declare const CODE_TO_BYTE_SIZE: ICODE_TO_BYTE_SIZE;