来自标签“szipinf”的日志的含义是什么?和文本:“初始化充气状态”来自 Logcat

发布于 2024-12-29 07:32:02 字数 156 浏览 1 评论 0原文

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

I am a new programmer for Android, so please excuse my knowledge and also my English because it is not my first language. So I am having a log with the tag:"szipinf" and text:"Initializing inflate state" and I don`t know what it means.... I also seen that it appears only when I test the game on my phone, on the emulator it doesn't show up. I would really appreciate if someone could tell me what it means.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

萤火眠眠 2025-01-05 07:32:02

我们通过源代码来搜索这条消息,看看是谁打印了日志。 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);

您可以在渲染脚本中找到此类的用法,BitmapFactory和其他地方。

Let's search this message through the source code to find who prints the log. 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");
    ...
}

The next question we'd like to ask is where and how it's used? In the _CompressedAsset which is a subclass of Asset for dealing with compressed files:

/*
 * 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.
 */

More precisely:

static Asset* createFromCompressedFile(const char* fileName, AccessMode mode);

You can find usages of this class in renderscript, BitmapFactory and other places.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文