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

Function postUserEvent

packages/node/src/backend/nodeBackend.ts:868–877  ·  view source on GitHub ↗
(tag: number, payload: Uint8Array)

Source from the content-addressed store, hash-verified

866 },
867
868 postUserEvent(tag: number, payload: Uint8Array): void {
869 if (disposed) throw new Error("NodeBackend: disposed");
870 if (fatal !== null) throw fatal;
871 if (worker === null) throw new Error("NodeBackend: not started");
872 if (stopRequested) throw new Error("NodeBackend: stopped");
873
874 const buf = new ArrayBuffer(payload.byteLength);
875 copyInto(buf, payload);
876 send({ type: "postUserEvent", tag, payload: buf, byteLen: payload.byteLength }, [buf]);
877 },
878
879 async commitScrollback(drawlist: Uint8Array, rows: number): Promise<void> {
880 if (disposed) throw new Error("NodeBackend: disposed");

Callers

nothing calls this directly

Calls 2

copyIntoFunction · 0.85
sendFunction · 0.85

Tested by

no test coverage detected