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

Method write

javascript/packages/core/lib/gen/bool.ts:35–37  ·  view source on GitHub ↗
(accessor: string)

Source from the content-addressed store, hash-verified

33 }
34
35 write(accessor: string): string {
36 return this.builder.writer.writeUint8(`${accessor} ? 1 : 0`);
37 }
38
39 read(accessor: (expr: string) => string): string {
40 return accessor(`${this.builder.reader.readUint8()} === 1`);

Callers

nothing calls this directly

Calls 1

writeUint8Method · 0.45

Tested by

no test coverage detected