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

Function pb_settable

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

Source from the content-addressed store, hash-verified

935}
936
937PB_API pb_Entry *pb_settable(pb_Table *t, pb_Key key) {
938 pb_Entry *entry;
939 if ((entry = pb_gettable(t, key)) != NULL)
940 return entry;
941 return pbT_newkey(t, key);
942}
943
944PB_API int pb_nextentry(const pb_Table *t, const pb_Entry **pentry) {
945 size_t i = *pentry ? pbT_offset(*pentry, t->hash) : 0;

Callers 3

pb_newtypeFunction · 0.85
pb_newfieldFunction · 0.85
pbL_loadTypeFunction · 0.85

Calls 2

pb_gettableFunction · 0.85
pbT_newkeyFunction · 0.85

Tested by

no test coverage detected