Lines Matching refs:write_bytes
404 size_t write_bytes = z_stream_->next_out - buffer_.data(); in CompressBytes() local
405 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in CompressBytes()
408 file->compressed_size += write_bytes; in CompressBytes()
409 current_offset_ += write_bytes; in CompressBytes()
431 size_t write_bytes = z_stream_->next_out - buffer_.data(); in FlushCompressedBytes() local
432 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
435 file->compressed_size += write_bytes; in FlushCompressedBytes()
436 current_offset_ += write_bytes; in FlushCompressedBytes()
446 size_t write_bytes = z_stream_->next_out - buffer_.data(); in FlushCompressedBytes() local
447 if (write_bytes != 0) { in FlushCompressedBytes()
448 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
451 file->compressed_size += write_bytes; in FlushCompressedBytes()
452 current_offset_ += write_bytes; in FlushCompressedBytes()