gpt4 book ai didi

android - 来自 Logcat 的标记 :"szipinf"和文本 :"Initializing inflate state"的日志的含义是什么

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:03:27 26 4
gpt4 key购买 nike

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

最佳答案

让我们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以及它是如何使用的? _CompressedAssetAsset 的子类,用于处理压缩文件:

/*
* 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等地方找到这个类的用法。

关于android - 来自 Logcat 的标记 :"szipinf"和文本 :"Initializing inflate state"的日志的含义是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9022832/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com