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

Function pb_init

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

Source from the content-addressed store, hash-verified

1124} pb_OneofEntry;
1125
1126PB_API void pb_init(pb_State *S) {
1127 memset(S, 0, sizeof(pb_State));
1128 S->types.entry_size = sizeof(pb_TypeEntry);
1129 pb_initpool(&S->typepool, sizeof(pb_Type));
1130 pb_initpool(&S->fieldpool, sizeof(pb_Field));
1131}
1132
1133PB_API void pb_free(pb_State *S) {
1134 const pb_TypeEntry *te = NULL;

Callers 2

lpb_lstateFunction · 0.85
Lpb_clearFunction · 0.85

Calls 1

pb_initpoolFunction · 0.85

Tested by

no test coverage detected