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

Function Lpb_unpack

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

Source from the content-addressed store, hash-verified

1971}
1972
1973static int Lpb_unpack(lua_State* L) {
1974 lpb_State* LS = lpb_lstate(L);
1975 const pb_Type* t = lpb_type(LS, lpb_checkslice(L, 1));
1976 pb_Slice s = lpb_checkslice(L, 2);
1977 lpb_Env e;
1978 e.L = L, e.LS = LS, e.s = &s;
1979 argcheck(L, t != NULL, 1, "type '%s' does not exists", lua_tostring(L, 1));
1980 return lpbD_unpack(&e, t);
1981}
1982
1983/* pb module interface */
1984

Callers

nothing calls this directly

Calls 5

lpb_lstateFunction · 0.85
lpb_typeFunction · 0.85
lpb_checksliceFunction · 0.85
argcheckFunction · 0.85
lpbD_unpackFunction · 0.85

Tested by

no test coverage detected