[英]console output stating bit length overflow
当我运行我的应用程序时,我将这个 output 发送到控制台:
位长溢出代码 11 位 7->5 代码 16 位 4->5
位长溢出码 4 位 6->7
位长溢出代码 3 位 6->7 代码 0 位 6->7
位长溢出码 16 位 4->5
位长溢出码 4 位 6->7 码 5 位 6->5 码 16 位 4->5
位长溢出码 16 位 4->5
位长溢出代码 0 位 6->7
位长溢出代码 11 位 6->7
该应用程序压缩了 3 个文件并将其保存到其文档文件夹中,一切似乎都很好....除了这个 output。
更新:
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@try {
NSString *docsPath =[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
NSString *filePath = [docsPath stringByAppendingPathComponent:@"ZipTest.zip"];
ZipFile *zipFile = [[ZipFile alloc] initWithFileName:filePath mode:ZipFileModeCreate];
ZipWriteStream *stream;
if (self.textSwitch.on) {
stream = [zipFile writeFileInZipWithName:@"text.txt" compressionLevel:ZipCompressionLevelBest];
}
[zipFile close];
[zipFile release];
}
@catch (ZipException *ze) {}
@catch (id e) {}
[pool drain];
这是什么意思?
谢谢
根据这个Mozilla 错误,这些是由在调试模式下构建 ZLIB 引起的,并且是无害的。您可以考虑始终构建 ZLIB 的发布版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.