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

Function makeHead

javascript/packages/core/lib/gen/serializer.ts:27–33  ·  view source on GitHub ↗
(flag: RefFlags, typeId: number)

Source from the content-addressed store, hash-verified

25import { BinaryWriter } from "../writer";
26
27export const makeHead = (flag: RefFlags, typeId: number) => {
28 const writer = new BinaryWriter();
29 writer.writeUint8(flag);
30 writer.writeUint8(typeId);
31 const buffer = writer.dump();
32 return buffer;
33};
34
35export interface SerializerGenerator {
36 writeRef(accessor: string): string;

Callers

nothing calls this directly

Calls 2

writeUint8Method · 0.95
dumpMethod · 0.95

Tested by

no test coverage detected