| 1065 | } |
| 1066 | |
| 1067 | int32_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 | |
| 1080 | int32_t ExIntegerToByte8Func(lua_State *L) { |
| 1081 | //把integer转换成8字节数组 |
nothing calls this directly
no test coverage detected