[LayaAir 1.0]选择压缩混淆 JS发布项目,protobuf解析报错
正常发布项目运行是没有问题的,但是代码超8M了,想压缩一下,但是压缩后protobuf在解析的时候报decode错
skipType的wireType只有5个类型,为什么会报6
Reader.prototype.skipType = function(wireType) {
switch (wireType) {
case 0:
this.skip();
break;
case 1:
this.skip(8);
break;
case 2:
this.skip(this.uint32());
break;
case 3:
do { // eslint-disable-line no-constant-condition
if ((wireType = this.uint32() & 7) === 4)
break;
this.skipType(wireType);
} while (true);
break;
case 5:
this.skip(4);
break;
/* istanbul ignore next */
default:
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
}
return this;
};
skipType的wireType只有5个类型,为什么会报6
Reader.prototype.skipType = function(wireType) {
switch (wireType) {
case 0:
this.skip();
break;
case 1:
this.skip(8);
break;
case 2:
this.skip(this.uint32());
break;
case 3:
do { // eslint-disable-line no-constant-condition
if ((wireType = this.uint32() & 7) === 4)
break;
this.skipType(wireType);
} while (true);
break;
case 5:
this.skip(4);
break;
/* istanbul ignore next */
default:
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
}
return this;
};
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
修仙中的小明
赞同来自: