大约有 195 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
Laya_社区(168) Laya2.0_文档(9) Laya3.0_文档(5) Laya3.0_api(5) Laya2.0_api(3) laya_api(3) Laya_示例(1) Laya2.0_示例(1)
ArrayBuffer怎么转换成js的ByteArray var bytes:ByteArray = new ByteArray(); bytes.writeArrayBuffer(data); bytes.position = 0; 是不是这样啊???? 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20161219
...login.toArrayBuffer()的同时,还要发送另外的,比如: this.byte.writeInt32(123); this.byte.writeInt32(1234); this.byte.writeArrayBuffer(buffer); this.socket.send(this.byte.buffer); 那么现在的数据要怎么反序化呢 2017-09-21 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170921
...anceVertexElementFormat Object ... Public Constants ConstantDefined By Byte4 : String = byte4[static] VertexElementFormat Color : String = color[static] VertexElementFormat HalfVector2 : String = halfvector2[static] VertexElementFormat HalfVector4 : String = halfvector4[static] VertexEl...
来源: laya_api 发布时间: 20170929
...写入了四个字节的数据 //......解密逻辑开始处理数据 var byte = new Laya.Byte(data); //Byte数组接收arraybuffer // byte.writeArrayBuffer(data,4);//从第四个字节开始读取数据 var blob = new Laya.Browser.window.Blob([byte.buffer], { type: "image/png" }); var url = Laya.Br...
来源: Laya_社区 发布时间: 20180629
...格式信息。 VertexElementFormatPublic Constants ConstantDefined By Byte4 : String = byte4[static] VertexElementFormat Color : String = color[static] VertexElementFormat HalfVector2 : String = halfvector2[static] VertexElementFormat HalfVector4 : String = halfvector4[static] VertexEl...
来源: Laya2.0_api 发布时间: 20190513
...(800,600,Laya.WebGL); // var socket = io.connect('10.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.sock...
来源: Laya_社区 发布时间: 20180509
...t same app domain LayaBox : xhr.get url=A/7ac97acac07a28873c87f19ba794c498.bytes 12-19 14:33:07.993 28268 28335 W LayaBox : Error: A/7ac97acac07a28873c87f19ba794c498.bytes does not belong to the same app domain: B/ 12-19 14:33:07.993 28268 28317 I LayaBox : Download [ ]:A/7ac97acac07a28873c87f19ba79...
来源: Laya_社区 发布时间: 20181219
as怎么用protobytebuf传输数据到服务端 附上部分代码 我发送到服务器,接收到的数据为空,是不是哪里写错了?protibufDemo也是从你们哪里下载下来模拟的,服务端接收代码 WebSocketFrame frame = (WebSocketFrame)msg; ByteBuf buf = frame.content(); ...
来源: Laya_社区 发布时间: 20170405
...ge 是string类型,为了保证中文不乱码,就需要转utf var testbyte:Byte = new Byte(); testbyte.writeUTFBytes(message); 如何用socket发送Byte类型 官网demo里是对于string类型发送是如下处理: for (var i = 0; i < message.length; ++i) { output.writeByte(message.charCo...
来源: Laya_社区 发布时间: 20160801
...效。(function() { var Event = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var socket; var output; (function() { Laya.init(550, 400); connect(); })(); function connect() { socket = new Socket(); //socket.connect("echo.websocket.org", 80); socket.connectByUrl("ws://echo.websocket.org...
来源: Laya_示例 发布时间: 20251130