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

Function Lconv_encode_float

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

Source from the content-addressed store, hash-verified

626}
627
628static int Lconv_encode_float(lua_State *L) {
629 return lpb_pushinteger(L, pb_encode_float((float)luaL_checknumber(L, 1)),
630 1, lpb_lstate(L)->int64_mode), 1;
631}
632
633static int Lconv_decode_float(lua_State *L) {
634 return lua_pushnumber(L,

Callers

nothing calls this directly

Calls 4

lpb_pushintegerFunction · 0.85
pb_encode_floatFunction · 0.85
luaL_checknumberFunction · 0.85
lpb_lstateFunction · 0.85

Tested by

no test coverage detected