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

Function pb_resetbuffer

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

Source from the content-addressed store, hash-verified

687{ memset(b, 0, sizeof(pb_Buffer)); }
688
689PB_API void pb_resetbuffer(pb_Buffer *b)
690{ if (pb_onheap(b)) free(b->u.h.buff); pb_initbuffer(b); }
691
692static int pb_write32(char *buff, uint32_t n) {
693 int p, c = 0;

Callers 8

pb_loadFunction · 0.85
Lpb_deleteFunction · 0.85
Lbuf_deleteFunction · 0.85
Lbuf_packFunction · 0.85
lpb_typeFunction · 0.85
Lpb_loadfileFunction · 0.85
Lpb_encodeFunction · 0.85
Lpb_packFunction · 0.85

Calls 1

pb_initbufferFunction · 0.85

Tested by

no test coverage detected