大约有 24 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0035 秒)
...z0123456789+/" Defined in laya/utils/Base64Tool.ts:3 Static lookup lookup: Uint8Array = null Defined in laya/utils/Base64Tool.ts:8 Static reg reg: RegExp = /^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)\s*$/i Defined in laya/utils/Base64Too...
来源: Laya3.0_api 发布时间: 20231115
...= new Laya.Byte(); //或者传入一个类型化数组 var uint8Byte = new Uint8Array(10); var byte = new Laya.Byte(uint8Byte); //或者传入一个ArrayBuffer类型 var buffer = new ArrayBuffer(20); var byte = new Laya.Byte(buffer); ``` - **writeArrayBuffer**(arraybuffer, offset, length) 写入...
来源: Laya2.0_文档 发布时间: 20210714
... mipmap:Boolean = true):DataTexture2D[static] DataTexture2D getPixels():Uint8Array 返回图片像素。 DataTexture2D load(url:String, w:int = 0, h:int = 0, magfilter:int, minfilter:int):DataTexture2D[static] 加载Texture2D。 DataTexture2D onAsynLoaded(url:String, data:*, params:Array):v...
来源: laya_api 发布时间: 20170929
...ns VertexBuffer3D Properties _buffer _buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array Inherited from Buffer._buffer Defined in laya/RenderEngine/Buffer.ts:8 _bufferType _bufferType: number Inherited from Buffer._bufferType Defined in laya/RenderEngine/Buffer.ts:10 _bufferUsage _bufferU...
来源: Laya3.0_api 发布时间: 20231115
...iveVertexBuffer3D Properties _buffer _buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array Inherited from Buffer._buffer Defined in laya/RenderEngine/Buffer.ts:8 _bufferType _bufferType: number Inherited from Buffer._bufferType Defined in laya/RenderEngine/Buffer.ts:10 _bufferUsage _bufferU...
来源: Laya3.0_api 发布时间: 20231115
....Byte = new Laya.Byte(); //或者传入一个类型化数组 var uint8Byte:Uint8Array = new Uint8Array(10); var byte:Laya.Byte = new Laya.Byte(uint8Byte); //或者传入一个ArrayBuffer类型 var buffer:ArrayBuffer = new ArrayBuffer(20); var byte:Laya.Byte = new Laya.Byte(buffer); writeArrayBuffer(...
来源: Laya3.0_文档 发布时间: 20241014
...ters colors: Color[] 颜色数组。 Returns void getIndices getIndices(): Uint8Array | Uint16Array | Uint32Array Defined in laya/d3/resource/models/Mesh.ts:723 拷贝并获取网格索引的副本。 Returns Uint8Array | Uint16Array | Uint32Array 网格索引。 getNormals getNormals(normals: Vecto...
来源: Laya3.0_api 发布时间: 20231115
...ffer', success(res) { console.log(fromCharCode(Pako.inflate(new Uint8Array(res.data)))); } }); //处理中文 function decodeUTF8(arr,toType) { //转为utf8编码字符串 let str = ''; for (var i = 0; i < arr.length; i++) { ...
来源: Laya_社区 发布时间: 20191211
...编码为二进制格式(即序列化),通过.finish()返回一个 Uint8Array类型的二进制缓冲区。 const greetingBuffer = this.ChatMessage.encode(greetingMessage).finish(); //socket不为 null 或 undefined时,将二进制数据 greetingBuffer 通过 WebSocket 发送到服务器。 ...
来源: Laya3.0_文档 发布时间: 20241119
...Loader.getRes(this.AllPng[this.curStatus ? 0: 1]);//pic-001 const x2 = new Uint8Array(data); let p = new window['PNG'](x2); let getData = p.decode();//rgba数组序列 this.texture.setPixels(getData); } private onKey(e){ if(e.keyCode == 49){ this.refreshCamera(); // this.updateUITexture(data); }else...
来源: Laya_社区 发布时间: 20220815