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

Function Lconv_encode_double

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

Source from the content-addressed store, hash-verified

636}
637
638static int Lconv_encode_double(lua_State *L) {
639 return lpb_pushinteger(L, pb_encode_double(luaL_checknumber(L, 1)),
640 1, lpb_lstate(L)->int64_mode), 1;
641}
642
643static int Lconv_decode_double(lua_State *L) {
644 return lua_pushnumber(L, pb_decode_double(lpb_checkinteger(L, 1))), 1;

Callers

nothing calls this directly

Calls 4

lpb_pushintegerFunction · 0.85
pb_encode_doubleFunction · 0.85
luaL_checknumberFunction · 0.85
lpb_lstateFunction · 0.85

Tested by

no test coverage detected