从Logcat中标记为“ szipinf”和文本为“ Initializing inflate state”的日志的含义是什么?

7

我是一名新的Android程序员,请原谅我的知识和英语水平,因为英语不是我的母语。我在日志中看到了一个标签为“szipinf”、文本为“Initializing inflate state”的错误记录,但我不知道它的含义...我发现这个错误只会在我手机上测试游戏时出现,在模拟器上没有显示。如果有人能告诉我它的含义,我将不胜感激。

1个回答

4

让我们通过源代码搜索此消息,以查找打印日志的人。StreamingZipInflater.cpp

/*
 * Streaming access to compressed data held in an mmapped region of memory
 */
StreamingZipInflater::StreamingZipInflater(FileMap* dataMap, size_t uncompSize) {
    ...
    initInflateState();
}

void StreamingZipInflater::initInflateState() {
    LOGV("Initializing inflate state");
    ...
}

我们想要问的下一个问题是何处以及它是如何被使用的?在_CompressedAsset中,这是用于处理压缩文件的Asset子类:
/*
 * Instances of this class provide read-only operations on a byte stream.
 *
 * Access may be optimized for streaming, random, or whole buffer modes.  All
 * operations are supported regardless of how the file was opened, but some
 * things will be less efficient.
 *
 * "Asset" is the base class for all types of assets.  The classes below
 * provide most of the implementation.  The AssetManager uses one of the
 * static "create" functions defined here to create a new instance.
 */

更精确地说:
static Asset* createFromCompressedFile(const char* fileName, AccessMode mode);

您可以在RenderScript、BitmapFactory和其他地方找到此类的用法。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接