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

大约有 167 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0063 秒)

1. socket大型项目回调 [ 100%]

...e onMessage(event:Laya.Event):void{ console.log("onMessage"+event); // var byte:Laya.Byte = new Laya.Byte(); // this.socket.input.readBytes(byte); if (event instanceof ArrayBuffer){ var byte:Laya.Byte = new Laya.Byte(event); this.socket.input.clear(); this.processPackage(this._package.decode(byte));...

来源: Laya_社区 发布时间: 20180119

2. Laya.Byte使用getUint16读取错误 [ 99%]

Laya.Byte使用getUint16读取错误 var bytes1 = new Laya.Byte([0,8]); console.log('++',bytes1.getUint8(),bytes1.getUint8()); var bytes2 = new Laya.Byte([0,8]); console.log('++',bytes2.getUint16()); var bytes3 = new Laya.Byte([0,8,0,0]); console.log('++',bytes3.getUint32());   采用上面测试...

来源: Laya_社区 发布时间: 20180625

3. 如何把Byte数据读入到另一个Byte数据里 [ 99%]

如何把Byte数据读入到另一个Byte数据里 如何把Byte数据读入到另一个Byte数据里,就像as3里面的readBytes(flash.utils.ByteArray.readBytes(bytes:ByteArray, offset:uint=0, length:uint=0):void 从字节流中读取 length 参数指定的数据字节数。从 offset 指定...

来源: Laya_社区 发布时间: 20161226

4. 协议打包byte出错 [ 99%]

协议打包byte出错 // message request_create{ //          required string name = 1; //角色名 //          required bytes career = 2; //角色职业 //          required bytes sex = 3; //角色性别 // }             if(Msg== null){            ...

来源: Laya_社区 发布时间: 20180314

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

HTTP以POST发送Byte字节流,服务器无法解析 JS代码: function starConnection() { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequ...

来源: Laya_社区 发布时间: 20160726

6. 关于socket处理消息的问题 [ 98%]

关于socket处理消息的问题 我尝试用 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.__get...

来源: Laya_社区 发布时间: 20170905

7. 将字节数组转为图片 [ 98%]

将字节数组转为图片 flash air端将图片通过ByteArray保存为字节数组,并存为img.byte layaAir端加载了img.byte文件后如何还原为图片?flash端的loader有个loadBytes方法可以加载字节数组,但是layaAir端没有相关方法实现 2017-04-17 添加评论 免...

来源: Laya_社区 发布时间: 20170417

8. Laya.Socket 是不是不支持Safari浏览器二进制格式的数据传输? [ 97%]

...的测试 /* * name; */ class Test{ private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里...

来源: Laya_社区 发布时间: 20171129

9. socket报错,on: reserved1 = 1, reserved2 = 1, reserved3 = 0 [ 97%]

...kage { import laya.events.Event; import laya.net.Socket; import laya.utils.Byte; import laya.webgl.WebGL; public class SocketSample { public var socket:Socket; private var byte:Byte; public function SocketSample() { //初始化引擎 this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//...

来源: Laya_社区 发布时间: 20180202

10. 麻烦问一下C#里面的byte[]相当于laya里面的Laya.Byte还是number[] [ 97%]

麻烦问一下C#里面的byte[]相当于laya里面的Laya.Byte还是number[] 2018-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: as3的数据类型1.1.1 int:默认0;4字节,...

来源: Laya_社区 发布时间: 20180409