MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / postUserEvent

Function postUserEvent

packages/node/src/backend/nodeBackendInline.ts:768–781  ·  view source on GitHub ↗
(tag: number, payload: Uint8Array)

Source from the content-addressed store, hash-verified

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");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected