UNPKG

@foxglove/ulog

Version:
23 lines 527 B
"use strict"; 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