@mrhiden/cstruct
Version:
For packing and unpacking bytes (C like structures) in/from Buffer based on Object/Array type for parsing.
26 lines (25 loc) • 854 B
TypeScript
import { Model, Types } from "./types";
export declare class ModelParser {
private static _allowedLengthTypes;
private static _sTypes;
private static _wsTypes;
private static _bufTypes;
private static _jTypes;
private static checkWhetherSizeIsNumber;
private static checkSize;
private static translateType;
private static getSize;
private static removeComments;
private static prepareJson;
private static arrayOfItems1;
private static arrayOfItems2;
private static staticOrDynamicArray;
private static justArray;
private static cKindFields;
private static cKindStructs;
private static clearJson;
private static replaceModelTypesWithUserTypes;
private static fixJson;
static parseTypes(types: Types): string;
static parseModel(model: Model, types?: Types): string;
}