来自标签的日志是什么意思:“szipinf”和文本:从Logcat“初始化膨胀状态”

时间:2012-01-26 17:51:49

标签: android logging state inflate initializing

我是Android的新程序员,所以请原谅我的知识和英语,因为它不是我的第一语言。所以我有一个带有标签的日志:“szipinf”和文字:“初始化膨胀状态”,我不知道它意味着什么......我也看到只有当我在手机上测试游戏时,在模拟器上它没有出现。如果有人能告诉我这是什么意思,我真的很感激。

1 个答案:

答案 0 :(得分:4)

通过源代码让search这条消息找到谁打印日志。 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");
    ...
}

我们想问的下一个问题是where以及它是如何使用的?在_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和其他地方找到此课程的用法。