大约有 26 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
...数据的两种不同顺序,包括小端字节序和大端字节序。 LITTLE_ENDIAN :小端字节序,地址低位存储值的低位,地址高位存储值的高位。 BIG_ENDIAN :大端字节序,地址低位存储值的高位,地址高位存储值的低位。 Socket input : *[read-o...
来源: Laya2.0_api 发布时间: 20190513
...ay // var floats:Laya.Byte = new Laya.Byte(); // floats.endian = Laya.Byte.LITTLE_ENDIAN; // floats.getFloat32(value); // buffer.writeArrayBuffer(floats); Pomelo.writeBytes(this.encodeFloat(value),buffer); break; case 'double': // var doubles:Laya.Byte = new Laya.Byte(); // doubles.endian = Laya.Byt...
来源: Laya_社区 发布时间: 20180119
...g:80"); socket.connectByUrl('ws://127.0.0.1:88');// //output.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; output = socket.output; //socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; socket.on(Laya.Event.OPEN, this, onSocketOpen); socket.on(Laya.Event.CLOSE, this, onSocket...
来源: Laya_社区 发布时间: 20170822
...ar by:Laya.Byte = new Laya.Byte(); //设置endian; by.endian = Laya.Byte.LITTLE_ENDIAN; //写入一个int32数据 by.writeInt32(5000); //写入一个uint16 数据 by.writeUint16(16); //把临时字节数据的数据写入byte中,这里注意写入的是by.buffer; this.byte.writeArrayBuffer(by.bu...
来源: Laya3.0_文档 发布时间: 20250104
...= new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, th...
来源: Laya_社区 发布时间: 20180211
...tr) : paddingStr.concat(arr); return isArray ? result : result.join(""); } little_endian(charCode: number) { return this.split(this.padding(charCode.toString(16), 8, "0", false), 2).reverse().join(""); } range(...args: number[]) { const start: number = args.length === 1 ? 0 : args[0]; const end: num...
来源: Laya_社区 发布时间: 20190321