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

Function readStructInfo

javascript/test/typemeta.test.ts:607–610  ·  view source on GitHub ↗
(localHash: number, original: any)

Source from the content-addressed store, hash-verified

605 const originalA = { name: "originalA" } as any;
606 const originalB = { name: "originalB" } as any;
607 const readStructInfo = (localHash: number, original: any) => {
608 context.reset(bytes);
609 return context.readCompatibleStructSerializer(localHash, original);
610 };
611
612 expect(readStructInfo(localHashA, originalA)).toBe(serializers[0]);
613 expect(readStructInfo(localHashA, originalB)).toBe(serializers[0]);

Callers 1

typemeta.test.tsFile · 0.85

Calls 2

resetMethod · 0.65

Tested by

no test coverage detected