大约有 69 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0029 秒)
Laya_社区(44) Laya2.0_文档(8) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_api(3) laya_api(3) Laya_示例(1) Laya2.0_示例(1)
...ar file:File = File.applicationDirectory; var picPath:String = file.resolvePath("img.png").nativePath;//获取图片路径 //读取图片文件到字节数组 var readFile:File = new File(picPath); var readByte:ByteA...
来源: Laya_社区 发布时间: 20170417
String怎么转换为Uint8Array? reason:string = “&¥#”; //比如这个reason是个服务器发我的乱码的字符串 var byte:Laya.Byte = new Laya.Byte(); byte.writeUTFString(reason); var uint8ar = byte.getUint8Array(0, byte.length); 我解析出来的二进制数组跟服务端对...
来源: Laya_社区 发布时间: 20190122
...exElementFormat Object ... Public Constants ConstantDefined By Byte4 : String = byte4[static] VertexElementFormat Color : String = color[static] VertexElementFormat HalfVector2 : String = halfvector2[static] VertexElementFormat HalfVector4 : String = halfvector4[static] VertexElementFor...
来源: laya_api 发布时间: 20170929
...at Object ... Public Methods MethodDefined By getElementInfos(element:String):Array[static] 获取顶点元素格式信息。 VertexElementFormatPublic Constants ConstantDefined By Byte4 : String = byte4[static] VertexElementFormat Color : String = color[static] VertexElementFormat Ha...
来源: Laya2.0_api 发布时间: 20190513
...据很简单,只需要调用Socket的send函数即可,参数可以是string或者是ArrayBuffer。 发送字符串格式: ```typescript this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据: ```typescript this.byte.writeByte(1);//写入一个...
来源: Laya2.0_文档 发布时间: 20210714
...据很简单,只需要调用socket的send函数即可,参数可以是String或者ArrayBuffer。 发送字符串格式 ```java this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据 ```java this.byte.writeByte(1);//写入一个字节 this.byte.write...
来源: Laya2.0_文档 发布时间: 20210715
...ya ts怎么获取JSBridge 方法里面的byte或者Bitmap等数据 已经string int 都是可以返回的 ,但是byte能获取到么 比如 public static byte getBytes() { byte dd2 = new byte{12, 3, 0}; return dd2; } public static Bitmap getBitmap() { } 可以在laya ts代码中获取到么 var ...
来源: Laya_社区 发布时间: 20250917
...ublic static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String { if (end < 0) { end = byte.length; } return encode(byte.buffer.slice(s...
来源: Laya_社区 发布时间: 20190117
...age.Login.Password: got wiretype 7, want 2 message Login{//用户登录 string nickName = 1; string password = 2; } 2018-03-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 darren 相关问题 TypeScript下HttpRequest发送Post请...
来源: Laya_社区 发布时间: 20180328
...t = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; ////我们先用第一种方式显示图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 }...
来源: Laya2.0_文档 发布时间: 20210714