MCPcopy Create free account
hub / github.com/mapbox/pbf / writeTypeNotString

Function writeTypeNotString

test/fixtures/type_string.js:35–40  ·  view source on GitHub ↗
(obj, pbf)

Source from the content-addressed store, hash-verified

33 return obj;
34}
35export function writeTypeNotString(obj, pbf) {
36 if (obj.int) pbf.writeVarintField(1, obj.int);
37 if (obj.long) pbf.writeVarintField(2, obj.long);
38 if (obj.boolVal) pbf.writeBooleanField(3, obj.boolVal);
39 if (obj.float) pbf.writeFloatField(4, obj.float);
40}

Callers

nothing calls this directly

Calls 3

writeVarintFieldMethod · 0.80
writeBooleanFieldMethod · 0.80
writeFloatFieldMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…