2012-01-26 24 views
7

से "inflate state प्रारंभ करना" मैं एंड्रॉइड के लिए एक नया प्रोग्रामर हूं, इसलिए कृपया मेरे ज्ञान और मेरी अंग्रेजी से क्षमा करें क्योंकि यह मेरी पहली भाषा नहीं है । तो मुझे टैग के साथ लॉग इन है: "szipinf" और टेक्स्ट: "inflate state प्रारंभ करना" और मुझे नहीं पता कि इसका क्या अर्थ है .... मैंने यह भी देखा कि यह तब दिखाई देता है जब मैं अपने फोन पर गेम का परीक्षण करता हूं, एम्यूलेटर पर यह दिखाई नहीं देता है। अगर कोई मुझे बता सकता है कि इसका मतलब क्या है तो मैं वास्तव में सराहना करता हूं।टैग से लॉग का अर्थ क्या है: "szipinf" और टेक्स्ट: लॉगकट

उत्तर

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 है और यह कैसे उपयोग किया जाता है?

/* 
* 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 और अन्य स्थानों में इस वर्ग के उपयोगों पा सकते हैं _CompressedAsset जो कंप्रेस फ़ाइलों से निपटने के लिए Asset का एक उपवर्ग है।