( compatible: boolean, ref: boolean, registerFns: ReadonlyArray<RegisterFn>, )
| 110 | } |
| 111 | |
| 112 | function 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 | |
| 127 | function resolveRootSerializer(fory: Fory, bytes: Uint8Array): Serializer { |
| 128 | fory.readContext.reset(bytes); |
no outgoing calls
no test coverage detected