NeahNew/node_modules/pe-library/dist/format/FormatBase.js
2025-05-06 22:43:27 +02:00

20 lines
677 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FormatBase = /** @class */ (function () {
function FormatBase(view) {
this.view = view;
}
FormatBase.prototype.copyTo = function (bin, offset) {
new Uint8Array(bin, offset, this.view.byteLength).set(new Uint8Array(this.view.buffer, this.view.byteOffset, this.view.byteLength));
};
Object.defineProperty(FormatBase.prototype, "byteLength", {
get: function () {
return this.view.byteLength;
},
enumerable: false,
configurable: true
});
return FormatBase;
}());
exports.default = FormatBase;