大约有 264 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
Laya_社区(175) Laya3.0_api(33) laya_api(17) Laya3.0_文档(15) Laya2.0_文档(13) Laya2.0_api(5) Laya_示例(3) Laya2.0_示例(3)
...(100); buffBody.writeByte(1); conn.send("http://10.0.1.139:9000", buffBody.buffer, "post", "arraybuffer",null); } Byte的length长度输出为9 对面的JAVA服务器解析出来为16 我就算改成只writeByte一次,服务器解析出来大小也是8 我在send时传递的参数是byte这个类...
来源: Laya_社区 发布时间: 20160726
[LayaNative3]new CommondBuffer 没有回收释放,每次用完,直接给置成null,每次buffermemory都会增长,不会下降 1. 内存泄露问题 ,const buffer = new CommandBuffer后 用完将对象置成null,buffermemory 不会下降。 2. 想自己去回收内存, 辗转到Comman...
来源: Laya_社区 发布时间: 20250717
...haderIndex:int, b:Boolean):void 设置布尔。 BaseRender _setShaderValueBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseRender _setShaderValueColor(shaderIndex:int, color:*):void 设置颜色。 BaseRender _setShaderValueInt(shaderIndex:int, i:int):void 设置整型。 Bas...
来源: laya_api 发布时间: 20170603
...haderIndex:int, b:Boolean):void 设置布尔。 BaseRender _setShaderValueBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseRender _setShaderValueColor(shaderIndex:int, color:*):void 设置颜色。 BaseRender _setShaderValueInt(shaderIndex:int, i:int):void 设置整型。 Bas...
来源: laya_api 发布时间: 20170929
...上个2字节头 int32_t send_size = m_socket->send(asio::buffer(outMsg));//客户端能收到 std::string body_str; pbMsg.SerializeToString(&body_str);//protoBuf消息转二进制流 std::string outMsg2; wsEncodeFrame(body...
来源: Laya_社区 发布时间: 20170822
... message = AwesomeMessage.create({ awesomeField: "hello" }); let buffer = AwesomeMessage.encode(message).finish(); let decoded = AwesomeMessage.decode(buffer); Monica • 2017-11-16 11:57 js原生能够实现的功能,在LayaAir中同样可以实现。如果你这边是在js原生中使...
来源: Laya_社区 发布时间: 20171116
...haderIndex:int, b:Boolean):void 设置布尔。 BaseRender _setShaderValueBuffer(shaderIndex:int, buffer:Float32Array):void 设置Buffer。 BaseRender _setShaderValueColor(shaderIndex:int, color:*):void 设置颜色。 BaseRender _setShaderValueInt(shaderIndex:int, i:int):void 设置整型。 Bas...
来源: laya_api 发布时间: 20170929
...FileRes::onDownloadError file error 微信小游戏审核时候报错array buffer allocation failed导致通不过,望官方帮忙看下这个问题怎么处理 Failed to execute 'texImage2D怎么处理? Array buffer allocation failed 问题状态 最新活动: 2018-01-05 10:52 浏览: 3340 关...
来源: Laya_社区 发布时间: 20180105
...oad) { ib.conch_id = CanvasRenderingContext2D.ID++; ib.conchRef = new ArrayBufferRef(); ib.conchRef.id = ib.conch_id; _.needsz(16); _.wu32(0); _.wu32(11); _.wu32(ib.conch_id); _.wu32(ib.length * 2); ib.buffer = new Uint16Array(ib); _.wab(ib.buffer, ib.length * 2); ib._upload = true; } if (vb.conch_i...
来源: Laya_社区 发布时间: 20190806
...= new pack.LoginGame; login.set("account",""); login.set("passwd",""); var buffer:any = login.encode().toBuffer(); byte.writeArrayBuffer(buffer); this.socket.socket.flush(); }请问我的做法对吗?一般来说TS项目如何正确的使用protobuf发送与解析websocket通讯数据? 2017-02-1...
来源: Laya_社区 发布时间: 20170217