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

Method read

javascript/packages/core/lib/gen/datetime.ts:80–84  ·  view source on GitHub ↗
(accessor: (expr: string) => string)

Source from the content-addressed store, hash-verified

78 }
79
80 read(accessor: (expr: string) => string): string {
81 const seconds = this.builder.reader.readVarInt64();
82 const nanos = this.builder.reader.readInt32();
83 return accessor(`Number(${seconds}) * 1000 + ${nanos} / 1000000`);
84 }
85
86 getFixedSize(): number {
87 return 7;

Callers

nothing calls this directly

Calls 2

readVarInt64Method · 0.45
readInt32Method · 0.45

Tested by

no test coverage detected