var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
import { AbstractBundleDataStream, } from '../../utility/editable-data-stream';
export class VirtualBundle extends AbstractBundleDataStream {
    constructor(id, variables) {
        super(variables);
        this.id = id;
    }
    readRawInner() {
        return __awaiter(this, void 0, void 0, function* () {
            const output = {};
            for (const v of this.variables) {
                output[v.id] = yield v.readRaw();
            }
            return output;
        });
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlydHVhbC1idW5kbGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaW90aXplL3RhcC9kYXRhLyIsInNvdXJjZXMiOlsibGliL3RhcmdldC12YXJpYWJsZS92aXJ0dWFsLWJ1bmRsZS92aXJ0dWFsLWJ1bmRsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEVBQ0gsd0JBQXdCLEdBSTNCLE1BQU0sb0NBQW9DLENBQUM7QUFFNUMsTUFBTSxPQUFPLGFBQ1QsU0FBUSx3QkFBa0M7SUFHMUMsWUFBbUIsRUFBVyxFQUFFLFNBQW9IO1FBRWhKLEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztRQUZGLE9BQUUsR0FBRixFQUFFLENBQVM7SUFHOUIsQ0FBQztJQUVLLFlBQVk7O1lBQ2QsTUFBTSxNQUFNLEdBQXFDLEVBQUUsQ0FBQztZQUNwRCxLQUFLLE1BQU0sQ0FBQyxJQUFJLElBQUksQ0FBQyxTQUFTLEVBQUU7Z0JBQzVCLE1BQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLEdBQUcsTUFBTSxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUM7YUFDcEM7WUFDRCxPQUFPLE1BQWlDLENBQUM7UUFDN0MsQ0FBQztLQUFBO0NBRUoifQ==