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

Function getSubMessage

compile.js:114–117  ·  view source on GitHub ↗
(ctx, field)

Source from the content-addressed store, hash-verified

112}
113
114function getSubMessage(ctx, field) {
115 const type = getType(ctx, field);
116 return type && type._proto.fields ? type : null;
117}
118
119// Map of scalar protobuf type → suffix used in read/write/readPacked method names,
120// plus per-type flags. `packable` matches the protobuf spec list of packable types.

Callers 4

compileScalarFieldReadFunction · 0.85
compileFieldWriteFunction · 0.85
willSupportPackedFunction · 0.85
getDefaultWriteTestFunction · 0.85

Calls 1

getTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…