MCPcopy Create free account
hub / github.com/Tencent/UnLua / pbL_FieldOptions

Function pbL_FieldOptions

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.h:1437–1450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435}
1436
1437static int pbL_FieldOptions(pb_Loader *L, pbL_FieldInfo *info) {
1438 pb_Slice s;
1439 uint32_t tag;
1440 pbC(pbL_beginmsg(L, &s));
1441 while (pb_readvarint32(&L->s, &tag)) {
1442 switch (tag) {
1443 case pb_pair(2, PB_TVARINT): /* bool packed */
1444 pbC(pbL_readint32(L, &info->packed)); break;
1445 default: if (pb_skipvalue(&L->s, tag) == 0) return PB_ERROR;
1446 }
1447 }
1448 pbL_endmsg(L, &s);
1449 return PB_OK;
1450}
1451
1452static int pbL_FieldDescriptorProto(pb_Loader *L, pbL_FieldInfo *info) {
1453 pb_Slice s;

Callers 1

pbL_FieldDescriptorProtoFunction · 0.85

Calls 5

pbL_beginmsgFunction · 0.85
pb_readvarint32Function · 0.85
pbL_readint32Function · 0.85
pb_skipvalueFunction · 0.85
pbL_endmsgFunction · 0.85

Tested by

no test coverage detected