更新内存write函数
This commit is contained in:
parent
e9705a6656
commit
8a81351b95
|
|
@ -270,7 +270,5 @@ Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) {
|
|||
Timer.SetTimeOut(function ()
|
||||
{
|
||||
|
||||
print("111");
|
||||
|
||||
}, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -85,11 +85,11 @@ class NativePointer extends Base_C_Object {
|
|||
function write(value, type) {
|
||||
local Buf = blob(0);
|
||||
Buf.writen(value, type);
|
||||
local arr = array(Buf.len());
|
||||
for (local i = 0; i< Buf.len(); i++) {
|
||||
arr[i] = Buf[i];
|
||||
}
|
||||
writeByteArray(arr);
|
||||
// local arr = array(Buf.len());
|
||||
// for (local i = 0; i< Buf.len(); i++) {
|
||||
// arr[i] = Buf[i];
|
||||
// }
|
||||
writeByteArray(Buf);
|
||||
}
|
||||
|
||||
function writeS8(value) {
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ try {
|
|||
dofile("/dp_s/Front_main.nut");
|
||||
Front_main();
|
||||
} catch (exception){
|
||||
print("前置函数调用失败!");
|
||||
print(exception);
|
||||
}
|
||||
|
||||
function sqr_main() {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ getroottable().DebugModelFlag <- false;
|
|||
function InitPluginInfo() {
|
||||
Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg");
|
||||
Sq_CreatSocketConnect("127.0.0.1", "65109");
|
||||
// Sq_CreatSocketConnect("49.234.27.222", "65109");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
BIN
lib/libAurora.so
BIN
lib/libAurora.so
Binary file not shown.
Loading…
Reference in New Issue