大约有 21 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
...com:8888"; this.socket = new Laya.Socket(); this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.on(Laya.Event.OPEN, this, this.onConnectSuccess); this.socket.on(Laya.Event.CLOSE, this, this.onDisonnect); this.socket.on(Laya.Event.ERROR, this, this.onConnectFail); this.socket.on(Laya.Event.MESSAGE...
来源: Laya_社区 发布时间: 20180910
....decompress(); var ba:Byte = new Byte(plain); ba.pos = 0; ba.endian = Byte.BIG_ENDIAN;//根据自身情况写 lib.rar 2018-05-05 0 1 分享 微博 QZONE 微信 Meng℡ 赞同来自: Byte 里的 buffer 是ArrayBuffer 为什么是继承flash的ByteArray. 一调用buffer.uncompress,就报错。求解 2...
来源: Laya_社区 发布时间: 20180505
...yte=new Byte(); byte.writeArrayBuffer(msg); byte.pos=0; byte.endian=Socket.BIG_ENDIAN; //拆包开始 :依旧是length id buffer var length:number=byte.getUinit32(); var id:number=byte.getUint32(); //已经读完了length id,剩下的字节就是需要protobuf来decode成一个message了,怎...
来源: Laya_社区 发布时间: 20171113
...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...
来源: Laya2.0_文档 发布时间: 20210714
...w Laya.Socket(); //这里我们采用大端 this.socket.endian = Laya.Byte.BIG_ENDIAN; this.socket.connectByUrl("ws://"+host+":"+port+"/hoopster"); //建立连接 this.socket.on(Laya.Event.OPEN, this, onOpen); this.socket.on(Laya.Event.MESSAGE, this, onReceive); this.socket.on(Laya.Event.CLOSE, this...
来源: Laya_社区 发布时间: 20180312
...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : String= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : String= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...
来源: Laya2.0_文档 发布时间: 20210715
...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...
来源: Laya2.0_文档 发布时间: 20210715
..., this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9); buffBody.writeInt32(100); buffBody.writeByte(1); conn.send("http://10.0.1.139:9000", buffBody.buffer, "post", "arraybuffer",null); } Byte的length长度输出为9 对面的JAVA服务器解...
来源: Laya_社区 发布时间: 20160726
...og(Laya.Byte.getSystemEndian());//打印系统的字节顺序 3.2.2 属性 BIG_ENDIAN : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 LITTLE_ENDIAN : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序列的...
来源: Laya3.0_文档 发布时间: 20250104
...存储时字节的顺序是“大端模式”还是“小端模式”。 BIG_ENDIAN:大端字节序,地址低位存储值的高位,地址高位存储值的低位。有时也称之为网络字节序。 LITTLE_ENDIAN: 小端字节序,地址低位存储值的低位,地址高位存储值的...
来源: Laya3.0_文档 发布时间: 20251010