| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "volume_archive_libarchive.h" | 5 #include "volume_archive_libarchive.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cerrno> | 8 #include <cerrno> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 decompressed_data_buffer_ + | 345 decompressed_data_buffer_ + |
| 346 volume_archive_constants::kDecompressBufferSize); | 346 volume_archive_constants::kDecompressBufferSize); |
| 347 | 347 |
| 348 return read_bytes; | 348 return read_bytes; |
| 349 } | 349 } |
| 350 | 350 |
| 351 void VolumeArchiveLibarchive::MaybeDecompressAhead() { | 351 void VolumeArchiveLibarchive::MaybeDecompressAhead() { |
| 352 if (decompressed_data_size_ == 0) | 352 if (decompressed_data_size_ == 0) |
| 353 DecompressData(last_read_data_offset_, last_read_data_length_); | 353 DecompressData(last_read_data_offset_, last_read_data_length_); |
| 354 } | 354 } |
| OLD | NEW |