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