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

标签 android logging state inflate initializing

我是 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/

相关文章:

c# - System.Diagnostics.Trace、System.Diagnostics.Debug 和 System.Console 之间有什么区别?

c++ - 小型记录器类

flutter - 无法在新页面路线小部件中访问提供商

android - 如何使support.v4.widget.SlidingPaneLayout Pane 向左滑动

安卓导航组件 : Pass value (arguments) in fragments

android - 在 Android 中发送通知时感到困惑

java - 用于维护多个服务器状态信息的有效数据结构

java - 如果出现 404 错误则重定向链接

python - 简单 python 日志记录配置中的重复输出

javascript - 具有 ListView 和详细 View 的实体的 Redux 状态形状