2012-01-26 32 views
7

Tôi là lập trình viên mới cho Android, vì vậy hãy tha thứ cho kiến ​​thức của tôi và tiếng Anh của tôi vì nó không phải là ngôn ngữ đầu tiên của tôi . Vì vậy, tôi có một bản ghi với thẻ: "szipinf" và văn bản: "Khởi tạo trạng thái thổi phồng" và tôi không biết ý nghĩa của nó .... Tôi cũng thấy rằng nó chỉ xuất hiện khi tôi thử nghiệm trò chơi trên điện thoại của mình, trên trình mô phỏng nó không hiển thị. Tôi thực sự sẽ đánh giá cao nếu ai đó có thể cho tôi biết ý nghĩa của nó.Ý nghĩa của nhật ký từ thẻ: "szipinf" và văn bản: "Khởi tạo trạng thái thổi phồng" từ Logcat

Trả lời

4

Hãy search thông báo này thông qua mã nguồn để tìm người in nhật ký. 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"); 
    ... 
} 

Câu hỏi tiếp theo chúng tôi muốn hỏi là where và câu hỏi được sử dụng như thế nào? Trong _CompressedAsset mà là một lớp con của Asset để đối phó với các file nén:

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

Chính xác hơn:

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

Bạn có thể tìm thấy tập quán của lớp này trong RenderScript, BitmapFactory và những nơi khác.

Các vấn đề liên quan