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

Function headerParts

javascript/packages/core/test/schema-limit.test.js:109–117  ·  view source on GitHub ↗
(typeMeta)

Source from the content-addressed store, hash-verified

107}
108
109function headerParts(typeMeta) {
110 const encoded = typeMeta.toBytes();
111 const view = new DataView(encoded.buffer, encoded.byteOffset, encoded.byteLength);
112 const header = view.getBigUint64(0, true);
113 return {
114 low: Number(header & 0xffffffffn),
115 high: Number(header >> 32n),
116 };
117}
118
119function readCompatibleStructSerializer(readContext, expectedHash, original, typeMeta) {
120 const encoded = typeMeta.toBytes();

Callers 1

Calls 2

NumberClass · 0.85
toBytesMethod · 0.45

Tested by

no test coverage detected