UNPKG

@mrhiden/cstruct

Version:

For packing and unpacking bytes (C like structures) in/from Buffer based on Object/Array type for parsing.

61 lines (60 loc) 3.57 kB
export declare class AtomTypes { static readonly BOOL: string; static readonly B8: string; static readonly B16: string; static readonly B32: string; static readonly B64: string; static readonly U8: string; static readonly U16: string; static readonly U32: string; static readonly U64: string; static readonly BYTE: string; static readonly WORD: string; static readonly DWORD: string; static readonly LWORD: string; static readonly QWORD: string; static readonly I8: string; static readonly I16: string; static readonly I32: string; static readonly I64: string; static readonly CHAR: string; static readonly SINT: string; static readonly INT: string; static readonly DINT: string; static readonly LINT: string; static readonly QINT: string; static readonly F: string; static readonly F32: string; static readonly REAL: string; static readonly D: string; static readonly F64: string; static readonly LREAL: string; static readonly S: (size: number | string) => string; static readonly STR: (size: number | string) => string; static readonly STRING: (size: number | string) => string; static readonly SE0: string; static readonly SEndZero: string; static readonly ST0: string; static readonly STrailingZero: string; static readonly STREndZero: string; static readonly STRINGEndZero: string; static readonly STRTTrailingZero: string; static readonly STRINGTTrailingZero: string; static readonly WS: (size: number | string) => string; static readonly WSTR: (size: number | string) => string; static readonly WSTRING: (size: number | string) => string; static readonly WSE0: string; static readonly WSEndZero: string; static readonly WST0: string; static readonly WSTrailingZero: string; static readonly WSTREndZero: string; static readonly WSTRINGEndZero: string; static readonly WSTTrailingZero: string; static readonly WSTRINGTTrailingZero: string; static readonly BUF: (size: number) => string; static readonly BUFFER: (size: number) => string; static readonly J: (size: string | number) => string; static readonly JSON: (size: string | number) => string; static readonly ANY: (size: string | number) => string; } export type AtomType = typeof AtomTypes.BOOL | typeof AtomTypes.B8 | typeof AtomTypes.B16 | typeof AtomTypes.B32 | typeof AtomTypes.B64 | typeof AtomTypes.U8 | typeof AtomTypes.U16 | typeof AtomTypes.U32 | typeof AtomTypes.U64 | typeof AtomTypes.BYTE | typeof AtomTypes.WORD | typeof AtomTypes.DWORD | typeof AtomTypes.LWORD | typeof AtomTypes.QWORD | typeof AtomTypes.I8 | typeof AtomTypes.I16 | typeof AtomTypes.I32 | typeof AtomTypes.I64 | typeof AtomTypes.CHAR | typeof AtomTypes.SINT | typeof AtomTypes.INT | typeof AtomTypes.DINT | typeof AtomTypes.LINT | typeof AtomTypes.QINT | typeof AtomTypes.F | typeof AtomTypes.F32 | typeof AtomTypes.REAL | typeof AtomTypes.D | typeof AtomTypes.F64 | typeof AtomTypes.LREAL | typeof AtomTypes.S | typeof AtomTypes.STR | typeof AtomTypes.STRING | typeof AtomTypes.WS | typeof AtomTypes.WSTR | typeof AtomTypes.WSTRING | typeof AtomTypes.BUF | typeof AtomTypes.BUFFER | typeof AtomTypes.J | typeof AtomTypes.JSON | typeof AtomTypes.ANY | typeof AtomTypes.SE0 | typeof AtomTypes.SEndZero | typeof AtomTypes.ST0 | typeof AtomTypes.STrailingZero | typeof AtomTypes.STREndZero | typeof AtomTypes.STRINGEndZero | typeof AtomTypes.STRTTrailingZero | typeof AtomTypes.STRINGTTrailingZero;