()
| 164 | } |
| 165 | |
| 166 | serialize(): SerializedParamGraph { |
| 167 | this.#writeHeader() |
| 168 | this.#writeInputNodes() |
| 169 | this.#writeOutputNodes() |
| 170 | this.#writeRoots() |
| 171 | |
| 172 | return { |
| 173 | strings: this.#data.strings, |
| 174 | graph: encodeBase64url(new Uint8Array(this.#buffer, 0, this.#offset)), |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | #writeVaruint(value: number): void { |
| 179 | while (value >= 0x80) { |
no test coverage detected