Lines Matching defs:data
151 // A struct that contains data required for zlib functions to extract files from
155 const char* data; // weak
162 // data. (Returning NULL represents an error.) This function initializes the
164 // information needed for uncompressing data. (This function does not support
165 // writing compressed data and it returns NULL for this case.)
172 if (!buffer || !buffer->data || !buffer->length)
178 // Reads compressed data from the specified stream. This function copies data
184 if (!buffer || !buffer->data || !remaining_bytes)
188 memcpy(buf, &buffer->data[buffer->offset], size);
193 // Writes compressed data to the stream. This function always returns zero
194 // because this implementation is only for reading compressed data.
203 // Returns the offset from the beginning of the data.
236 // uncompressing data. This function deletes the ZipBuffer object referred by
245 // Returns the last error happened when reading or writing data. This function
311 unzFile PrepareMemoryForUnzipping(const std::string& data) {
312 if (data.empty())
318 buffer->data = data.data();
319 buffer->length = data.length();