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

Function pb_initpool

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

Source from the content-addressed store, hash-verified

812/* memory pool */
813
814PB_API void pb_initpool(pb_Pool *pool, size_t obj_size) {
815 memset(pool, 0, sizeof(pb_Pool));
816 pool->obj_size = obj_size;
817 assert(obj_size > sizeof(void*) && obj_size < PB_POOLSIZE/4);
818}
819
820PB_API void pb_freepool(pb_Pool *pool) {
821 void *page = pool->pages;

Callers 2

pb_freepoolFunction · 0.85
pb_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected