MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / writeBoolField

Function writeBoolField

src/proto.js:103–106  ·  view source on GitHub ↗
(field, value)

Source from the content-addressed store, hash-verified

101
102/** Write a bool field (wire type 0), only if true. */
103export function writeBoolField(field, value) {
104 if (!value) return Buffer.alloc(0);
105 return writeVarintField(field, 1);
106}
107
108// ─── Parser ────────────────────────────────────────────────
109

Callers 9

buildCascadeConfigFunction · 0.90
buildRunCommandBodyFunction · 0.90
buildGrepSearchV2BodyFunction · 0.90
buildWriteToFileBodyFunction · 0.90
buildProposeCodeBodyFunction · 0.90
buildReadUrlContentBodyFunction · 0.90

Calls 1

writeVarintFieldFunction · 0.85

Tested by

no test coverage detected