class ZipEntry { public: // Extracts this entry to file. // Returns true on success, false on failure. bool ExtractToFile(File& file, /*out*/std::string* error_msg); // Extract this entry to anonymous memory (R/W). // Returns null on failure and sets error_msg.
MemMap ExtractToMemMap(constchar* zip_filename, constchar* entry_filename, /*out*/std::string* error_msg); // Extracts this entry to memory. Stores `GetUncompressedSize()` bytes on success. // Returns true on success, false on failure. bool ExtractToMemory(/*out*/uint8_t* buffer, /*out*/std::string* error_msg); // Create a file-backed private (clean, R/W) memory mapping to this entry. // 'zip_filename' is used for diagnostics only, // the original file that the ZipArchive was open with is used // for the mapping. // // Will only succeed if the entry is stored uncompressed. // Returns invalid MemMap on failure and sets error_msg.
MemMap MapDirectlyFromFile(constchar* zip_filename, /*out*/std::string* error_msg); virtual ~ZipEntry();
// Same as Find, but doesn't return an error message if the entry is not found. The callers // should expect that the returned pointer is null while the error message is empty.
ZipEntry* FindOrNull(constchar* name, std::string* error_msg) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.