MCPcopy Create free account
hub / github.com/apache/fory / buildFory

Function buildFory

integration_tests/idl_tests/javascript/roundtrip.ts:112–125  ·  view source on GitHub ↗
(
  compatible: boolean,
  ref: boolean,
  registerFns: ReadonlyArray<RegisterFn>,
)

Source from the content-addressed store, hash-verified

110}
111
112function buildFory(
113 compatible: boolean,
114 ref: boolean,
115 registerFns: ReadonlyArray<RegisterFn>,
116): Fory {
117 const fory = new Fory({
118 compatible,
119 ref,
120 });
121 for (const registerFn of registerFns) {
122 registerFn(fory);
123 }
124 return fory;
125}
126
127function resolveRootSerializer(fory: Fory, bytes: Uint8Array): Serializer {
128 fory.readContext.reset(bytes);

Callers 2

runStandardRoundTripFunction · 0.70
runRefRoundTripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected