Lines Matching refs:declared_length
1101 const uint64_t declared_length = entry->uncompressed_length; in Create() local
1102 if (declared_length > size) { in Create()
1103 ALOGW("Zip: file size %" PRIu64 " is larger than the buffer size %zu.", declared_length, in Create()
1143 const uint64_t declared_length = entry->uncompressed_length; in Create() local
1150 if (declared_length > SIZE_MAX || declared_length > INT64_MAX) { in Create()
1151 ALOGW("Zip: file size %" PRIu64 " is too large to extract.", declared_length); in Create()
1156 if (declared_length > 0) { in Create()
1166 long result = TEMP_FAILURE_RETRY(fallocate(fd, 0, current_offset, declared_length)); in Create()
1169 declared_length, static_cast<int64_t>(current_offset), strerror(errno)); in Create()
1183 long result = TEMP_FAILURE_RETRY(ftruncate(fd, declared_length + current_offset)); in Create()
1186 static_cast<int64_t>(declared_length + current_offset), strerror(errno)); in Create()
1191 return std::make_optional<FileWriter>(fd, declared_length); in Create()
1211 explicit FileWriter(const int fd = -1, const uint64_t declared_length = 0) in FileWriter() argument
1214 declared_length_(static_cast<size_t>(declared_length)), in FileWriter()
1216 CHECK_LE(declared_length, SIZE_MAX); in FileWriter()