@foxglove/ulog
Version:
PX4 ULog file reader
23 lines • 527 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataReader = void 0;
class DataReader {
#data;
constructor(data) {
this.#data = data;
}
async open() {
return this.#data.byteLength;
}
async close() {
// no-op
}
async read(offset, length) {
return new Uint8Array(this.#data, offset, length);
}
size() {
return this.#data.byteLength;
}
}
exports.DataReader = DataReader;
//# sourceMappingURL=DataReader.js.map