MCPcopy Create free account
hub / github.com/callstackincubator/polygen / compile

Function compile

packages/polygen/src/api/WebAssembly.ts:43–47  ·  view source on GitHub ↗
(bufferOrView: BufferSource)

Source from the content-addressed store, hash-verified

41 * @return A WebAssemblyModule instance constructed from the binary data.
42 */
43export async function compile(bufferOrView: BufferSource): Promise<Module> {
44 return new Module(
45 ArrayBuffer.isView(bufferOrView) ? bufferOrView.buffer : bufferOrView
46 );
47}
48
49export async function compileStreaming(
50 source: Response | PromiseLike<Response>

Callers 2

compileStreamingFunction · 0.85
instantiateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected