大约有 23 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0014 秒)
... java: byte b = str.getBytes(CharsetUtil.UTF_8); int len = b.length; bf.writeInt(len); bf.writeBytes(b); js: ws.onmessage = function (e) { var view=new DataView(e.data); console.log(view.byteLength);//7 console.log(view.getInt32(0));//3 console.log(view.getInt8(4),view.getInt8(5),view.getInt8(6));...
来源: Laya_社区 发布时间: 20180302
...EADER:any = pack.MSG_HEADER; var byte:Laya.Byte = this.socket.output; byte.writeInt32(MSG_HEADER.LoginGame);//和服务端约定好,前四个字节存放协议的名称 var login:any = new pack.LoginGame; login.set("account",""); login.set("passwd",""); var buffer:any = login.encode().toBuffer(); ...
来源: Laya_社区 发布时间: 20170217
...yReadIntTest():void { var byteArray:ByteArray = new ByteArray(); byteArray.writeInt(100); byteArray.position = 0; var value:int; /*[IF-FLASH]*/value = byteArray.readUnsignedInt(); //[IF-SCRIPT]value = byteArray.readInt(); }单行宏用法说明 1、AS3项目中 value = byteArray.readUnsignedI...
来源: Laya_社区 发布时间: 20151106