Files
dinlo 436a9631fc Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 18:44:04 +08:00

20 lines
658 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;