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

Function lpb_typefmt

Plugins/UnLuaExtensions/LuaProtobuf/Source/src/pb.cpp:672–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670/* protobuf encode routine */
671
672static int lpb_typefmt(int fmt) {
673 switch (fmt) {
674#define X(name,type,fmt) case fmt: return PB_T##name;
675 PB_TYPES(X)
676#undef X
677 }
678 return -1;
679}
680
681static int lpb_packfmt(lua_State *L, int idx, pb_Buffer *b, const char **pfmt, int level) {
682 const char *fmt = *pfmt;

Callers 3

lpb_packfmtFunction · 0.85
lpb_unpackfmtFunction · 0.85
Lpb_typefmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected