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

Method writeMessage

index.js:395–398  ·  view source on GitHub ↗

* @template T * @param {number} tag * @param {(obj: T, pbf: PbfWriter) => void} fn * @param {T} obj

(tag, fn, obj)

Source from the content-addressed store, hash-verified

393 * @param {T} obj
394 */
395 writeMessage(tag, fn, obj) {
396 this.writeTag(tag, PBF_BYTES);
397 this.writeRawMessage(fn, obj);
398 }
399
400 /**
401 * @param {number} tag

Callers 15

writePackedVarintMethod · 0.95
writePackedSVarintMethod · 0.95
writePackedBooleanMethod · 0.95
writePackedFloatMethod · 0.95
writePackedDoubleMethod · 0.95
writePackedFixed32Method · 0.95
writePackedSFixed32Method · 0.95
writePackedFixed64Method · 0.95
writePackedSFixed64Method · 0.95
pbf.test.jsFile · 0.80
writeEnvelopeFunction · 0.80
writeEmbeddedTypeFunction · 0.80

Calls 2

writeTagMethod · 0.95
writeRawMessageMethod · 0.95

Tested by

no test coverage detected