私は Android の新しいプログラマーです。私の母国語ではないので、私の知識と英語を許してください。そのため、タグ「szipinf」とテキスト「Initializing inflate state」のログがあり、それが何を意味するのかわかりません....また、携帯電話でゲームをテストしたときにのみ表示されることもわかりました。エミュレータでは表示されません。誰かがそれが何を意味するのか教えていただければ、本当に感謝しています。
1249 次
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);
このクラスの使用法は、renderscriptBitmapFactory
やその他の場所で見つけることができます。
于 2012-06-12T11:12:40.167 に答える