| 339 | } |
| 340 | |
| 341 | int32_t ZipWriter::StoreBytes(FileEntry* file, const void* data, size_t len) { |
| 342 | CHECK(state_ == State::kWritingEntry); |
| 343 | |
| 344 | if (fwrite(data, 1, len, file_) != len) { |
| 345 | return HandleError(kIoError); |
| 346 | } |
| 347 | file->compressed_size += len; |
| 348 | current_offset_ += len; |
| 349 | return kNoError; |
| 350 | } |
| 351 | |
| 352 | int32_t ZipWriter::CompressBytes(FileEntry* file, const void* data, size_t len) { |
| 353 | CHECK(state_ == State::kWritingEntry); |
nothing calls this directly
no outgoing calls
no test coverage detected