IFClite TypeScript API
    Preparing search index...

    Function buildBridge

    • Build the bim API object inside the QuickJS VM.

      Call resetLogs at the start of every run to reset logs, surfaces and their budgets. Settle hostWork before reading the logs and taking the surfaces (#2305, see bridge-async.ts).

      Parameters

      Returns {
          decoder: {
              decode: (
                  handle: QuickJSHandle,
                  depth?: number,
                  consoleMode?: boolean,
                  rejectAsError?: boolean,
              ) => unknown;
              decodeConsole: (handle: QuickJSHandle) => unknown;
              decodeResult: (handle: QuickJSHandle) => unknown;
              describeError: (handle: QuickJSHandle) => string;
              dispose: () => void;
          };
          dispose: () => void;
          hostWork: HostWorkQueue;
          logs: LogEntry[];
          resetLogs: () => void;
          takeSurfaces: () => CreateSurfaceMessage[][] | undefined;
      }