@mrhiden/cstruct
Version:
For packing and unpacking bytes (C like structures) in/from Buffer based on Object/Array type for parsing.
15 lines (14 loc) • 462 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReadLE = void 0;
const read_1 = require("./read");
const read_buffer_le_1 = require("./read-buffer-le");
class ReadLE extends read_1.Read {
constructor(model, buffer, offset = 0) {
super();
this._reader = new read_buffer_le_1.ReadBufferLE(buffer, offset);
this._struct = model;
this.recursion(this._struct);
}
}
exports.ReadLE = ReadLE;