(tag: number, payload: Uint8Array)
| 766 | }, |
| 767 | |
| 768 | postUserEvent(tag: number, payload: Uint8Array): void { |
| 769 | if (disposed) throw new Error("NodeBackend(inline): disposed"); |
| 770 | if (fatal !== null) throw fatal; |
| 771 | if (!started || engineId === null || native === null) |
| 772 | throw new Error("NodeBackend(inline): not started"); |
| 773 | if (stopRequested) throw new Error("NodeBackend(inline): stopped"); |
| 774 | const rc = native.enginePostUserEvent(engineId, tag, payload); |
| 775 | if (rc < 0) { |
| 776 | throw new ZrUiError( |
| 777 | "ZRUI_BACKEND_ERROR", |
| 778 | `engine_post_user_event failed: code=${String(rc)}`, |
| 779 | ); |
| 780 | } |
| 781 | }, |
| 782 | |
| 783 | async commitScrollback(drawlist: Uint8Array, rows: number): Promise<void> { |
| 784 | if (disposed) throw new Error("NodeBackend(inline): disposed"); |
nothing calls this directly
no outgoing calls
no test coverage detected