大约有 26 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...mple() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.on(Event.OPEN,this,openHandler); this.socket.on(Event.MESSAGE,this,rece...
来源: Laya_社区 发布时间: 20180202
...10.1.103:8081'); this.byte = 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://10.10.1.103:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20181107
...问题 我尝试用 var byte:Byte = new Byte(); byte.endian = Laya.Socket.LITTLE_ENDIAN; byte.writeUint32(12); byte.writeUint16(0); byte.writeUint16(msg.opcode()); msg.encode(byte); this._socket.send(byte.__getBuffer().slice(0, byte.length); //this._socket.send(byte.__getBuffer()); -->>这两...
来源: Laya_社区 发布时间: 20170905
...ndex Constructors constructor Properties disableInput protocols BIG_ENDIAN LITTLE_ENDIAN Accessors connected endian input output Methods cleanSocket close connect connectByUrl event flush hasListener off offAll offAllCaller on once send Constructors constructor new Socket(host?: string | null, port?...
来源: Laya3.0_api 发布时间: 20231115
...,地址高位存储值的低位。有时也称之为网络字节序。 LITTLE_ENDIAN: 小端字节序,地址低位存储值的低位,地址高位存储值的高位。 在网络通信、文件读写等场景中,数据在不同系统间传输时可能需要统一格式。如果发送方和...
来源: Laya3.0_文档 发布时间: 20251010
...10.1.103:8081'); this.byte = 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://10.10.1.103:8888"); // this.socket.connect("10.10.1.103",8888); this.socket.on(Laya.E...
来源: Laya_社区 发布时间: 20180509
...多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序列的最前面。 - **[pos]** : number当前读取到的位置。 ```typescript var byte = new Laya.Byte(); byte.writeInt...
来源: Laya2.0_文档 发布时间: 20210714
...多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : String= littleEndian[static] 表示多字节数字的最低有效字节位于字节序列的最前面。 - **[pos]** : int当前读取到的位置。 ```typescript var byte:Byte = new Byte(); byte.writeInt16(...
来源: Laya2.0_文档 发布时间: 20210715
...数据的两种不同顺序,包括小端字节序和大端字节序。 LITTLE_ENDIAN :小端字节序,地址低位存储值的低位,地址高位存储值的高位。 BIG_ENDIAN :大端字节序,地址低位存储值的高位,地址高位存储值的低位。 Socket input : *[read-o...
来源: laya_api 发布时间: 20170929
...多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序列的最前面。 - **[pos]** : number当前读取到的位置。 ```typescript var byte:Laya.Byte = new Laya.Byte(); byt...
来源: Laya2.0_文档 发布时间: 20210715