MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ExIntegerToByte4Func

Function ExIntegerToByte4Func

src/vm/luavm/lmylib.cpp:1067–1078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067int32_t ExIntegerToByte4Func(lua_State *L) {
1068 //把integer转换成4字节数组
1069 int32_t height = 0;
1070 if (!GetDataInt(L, height)) {
1071 return RetFalse("ExIntegerToByte4Func para err1");
1072 }
1073 LUA_BurnFuncCall(L, FUEL_CALL_IntegerToByte4, BURN_VER_R2);
1074 CDataStream tep(SER_DISK, CLIENT_VERSION);
1075 tep << height;
1076 vector<uint8_t> TMP(tep.begin(), tep.end());
1077 return RetRstToLua(L, TMP);
1078}
1079
1080int32_t ExIntegerToByte8Func(lua_State *L) {
1081 //把integer转换成8字节数组

Callers

nothing calls this directly

Calls 5

GetDataIntFunction · 0.85
RetFalseFunction · 0.85
RetRstToLuaFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected