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

Method bool

javascript/packages/core/lib/writer/index.ts:96–99  ·  view source on GitHub ↗
(bool: boolean)

Source from the content-addressed store, hash-verified

94 }
95
96 bool(bool: boolean) {
97 this.dataView.setUint8(this.cursor, bool ? 1 : 0);
98 this.cursor++;
99 }
100
101 writeUint8(v: number) {
102 this.dataView.setUint8(this.cursor, v);

Callers 11

typeInfoForElementTypeIdFunction · 0.45
writeBoolMethod · 0.45
data2TypeInfoFunction · 0.45
object.test.tsFile · 0.45
typemeta.test.tsFile · 0.45
fory.test.tsFile · 0.45
boolFieldFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected