Searched refs:declared_length (Results 1 – 1 of 1) sorted by relevance
/system/core/libziparchive/ |
D | zip_archive.cc | 845 const uint32_t declared_length = entry->uncompressed_length; in Create() local 854 if (declared_length > 0) { in Create() 864 result = TEMP_FAILURE_RETRY(fallocate(fd, 0, current_offset, declared_length)); in Create() 867 static_cast<int64_t>(declared_length), static_cast<int64_t>(current_offset), in Create() 882 result = TEMP_FAILURE_RETRY(ftruncate(fd, declared_length + current_offset)); in Create() 885 static_cast<int64_t>(declared_length + current_offset), strerror(errno)); in Create() 890 return FileWriter(fd, declared_length); in Create() 920 explicit FileWriter(const int fd = -1, const size_t declared_length = 0) in FileWriter() argument 921 : Writer(), fd_(fd), declared_length_(declared_length), total_bytes_written_(0) {} in FileWriter()
|