import {WasmSectionBinary} from "../wasm-binary-section"; import {WasmSection} from "../../core/wasm-section"; import {ByteArray} from "../../../../utils/bytearray"; import {WasmMemory} from "../../core/wasm-memory"; /** * Created by 01 on 2017-06-17. */ export class MemorySection extends WasmSectionBinary { memory:WasmMemory[]; constructor(payload = new ByteArray()) { super( WasmSection.Memory, payload.length, null, null, payload ); this.memory = []; } read(): void { } publish(data: ByteArray): void { super.publish(data); } }