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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlydHVhbC1idW5kbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9kYXRhL3NyYy9saWIvdGFyZ2V0LXZhcmlhYmxlL3ZpcnR1YWwtYnVuZGxlL3ZpcnR1YWwtYnVuZGxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8sRUFDTCx3QkFBd0IsR0FJekIsTUFBTSxvQ0FBb0MsQ0FBQztBQUU1QyxNQUFNLE9BQU8sYUFHWCxTQUFRLHdCQUFrQztJQUMxQyxZQUNTLEVBQVcsRUFDbEIsU0FPQztRQUVELEtBQUssQ0FBQyxTQUFTLENBQUMsQ0FBQztRQVZWLE9BQUUsR0FBRixFQUFFLENBQVM7SUFXcEIsQ0FBQztJQUVLLFlBQVk7O1lBQ2hCLE1BQU0sTUFBTSxHQUFxQyxFQUFFLENBQUM7WUFDcEQsS0FBSyxNQUFNLENBQUMsSUFBSSxJQUFJLENBQUMsU0FBUyxFQUFFO2dCQUM5QixNQUFNLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxHQUFHLE1BQU0sQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDO2FBQ2xDO1lBQ0QsT0FBTyxNQUFpQyxDQUFDO1FBQzNDLENBQUM7S0FBQTtDQUNGIn0=