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

Function lpb_addlength

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

Source from the content-addressed store, hash-verified

221/* protobuf util routines */
222
223static void lpb_addlength(lua_State *L, pb_Buffer *b, size_t len)
224{ if (pb_addlength(b, len) == 0) luaL_error(L, "encode bytes fail"); }
225
226static int typeerror(lua_State *L, int idx, const char *type) {
227 lua_pushfstring(L, "%s expected, got %s", type, luaL_typename(L, idx));

Callers 4

lpb_packfmtFunction · 0.85
lpbE_fieldFunction · 0.85
lpbE_mapFunction · 0.85
lpbE_repeatedFunction · 0.85

Calls 2

pb_addlengthFunction · 0.85
luaL_errorFunction · 0.85

Tested by

no test coverage detected