[]Laya.Byte的readUTFBytes问题
使用Laya.Byte的readUTFBytes方法读取大文本的时候会卡顿一下,在手机safiry浏览器中,直接导致浏览器崩溃,google浏览器有时会崩溃,难道不能读太大的数据吗?代码如下:var inflate = new Zlib.Inflate(new Uint8Array(data));
var outbuffer = inflate.decompress();
var sourceBytes:Laya.Byte =new Laya.Byte(outbuffer.buffer);
sourceBytes.endian = "BIG_ENDIAN";
var jsonstr:string = sourceBytes.readUTFBytes(sourceBytes.bytesAvailable)
var outbuffer = inflate.decompress();
var sourceBytes:Laya.Byte =new Laya.Byte(outbuffer.buffer);
sourceBytes.endian = "BIG_ENDIAN";
var jsonstr:string = sourceBytes.readUTFBytes(sourceBytes.bytesAvailable)
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
138*****748
赞同来自:
w1114367261
赞同来自: