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

Function Lconv_encode_int32

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

Source from the content-addressed store, hash-verified

596/* protobuf integer conversion */
597
598static int Lconv_encode_int32(lua_State *L) {
599 uint64_t v = pb_expandsig((int32_t)lpb_checkinteger(L, 1));
600 return lpb_pushinteger(L, v, 1, lpb_lstate(L)->int64_mode), 1;
601}
602
603static int Lconv_encode_uint32(lua_State *L) {
604 return lpb_pushinteger(L, (uint32_t)lpb_checkinteger(L, 1),

Callers

nothing calls this directly

Calls 4

pb_expandsigFunction · 0.85
lpb_checkintegerFunction · 0.85
lpb_pushintegerFunction · 0.85
lpb_lstateFunction · 0.85

Tested by

no test coverage detected