• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 21 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)

11. Native1.0.1 无法连接wss [ 62%]

...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

12. websocket通信,怎么解压 压缩的Byte? [ 62%]

....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

13. Protobuf decode报错 [ 60%]

...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

14. Byte二进制读写(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 60%]

...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...

来源: Laya2.0_文档 发布时间: 20210714

15. websocket无法连接 [ 59%]

...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

16. Byte二进制读写(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 59%]

...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : String= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : String= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...

来源: Laya2.0_文档 发布时间: 20210715

17. Byte二进制读写(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 59%]

...Byte.getSystemEndian());//打印系统的字节顺序 ``` - ### 属性 - **BIG_ENDIAN** : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 - **LITTLE_ENDIAN** : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序...

来源: Laya2.0_文档 发布时间: 20210715

18. HTTP以POST发送Byte字节流,服务器无法解析 [ 58%]

..., 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

19. 网络通信 · LayaAir3文档 · LAYABOX [ 32%]

...og(Laya.Byte.getSystemEndian());//打印系统的字节顺序 3.2.2 属性 BIG_ENDIAN : string= bigEndian[static] 表示多字节数字的最高有效字节位于字节序列的最前面。 LITTLE_ENDIAN : string= littleEndian[static] 表示多字节数字的最低有效字节位于字节序列的...

来源: Laya3.0_文档 发布时间: 20250104

20. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 23%]

...存储时字节的顺序是“大端模式”还是“小端模式”。 BIG_ENDIAN:大端字节序,地址低位存储值的高位,地址高位存储值的低位。有时也称之为网络字节序。 LITTLE_ENDIAN: 小端字节序,地址低位存储值的低位,地址高位存储值的...

来源: Laya3.0_文档 发布时间: 20251010