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

Method read

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

Source from the content-addressed store, hash-verified

46 }
47
48 read(accessor: (expr: string) => string): string {
49 const seconds = this.builder.reader.readInt64();
50 const nanos = this.builder.reader.readUint32();
51 return accessor(`new Date(Number(${seconds}) * 1000 + Math.floor(${nanos} / 1000000))`);
52 }
53
54 getFixedSize(): number {
55 return 12;

Callers

nothing calls this directly

Calls 2

readInt64Method · 0.45
readUint32Method · 0.45

Tested by

no test coverage detected