diff options
Diffstat (limited to 'src/TruncFileAllocationIterator.cc')
| -rw-r--r-- | src/TruncFileAllocationIterator.cc | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/TruncFileAllocationIterator.cc b/src/TruncFileAllocationIterator.cc index 212ae651..611ebe43 100644 --- a/src/TruncFileAllocationIterator.cc +++ b/src/TruncFileAllocationIterator.cc @@ -37,12 +37,12 @@ namespace aria2 { -TruncFileAllocationIterator::TruncFileAllocationIterator -(BinaryStream* stream, int64_t offset, int64_t totalLength) - : stream_(stream), - offset_(offset), - totalLength_(totalLength) -{} +TruncFileAllocationIterator::TruncFileAllocationIterator(BinaryStream* stream, + int64_t offset, + int64_t totalLength) + : stream_(stream), offset_(offset), totalLength_(totalLength) +{ +} void TruncFileAllocationIterator::allocateChunk() { @@ -50,19 +50,10 @@ void TruncFileAllocationIterator::allocateChunk() offset_ = totalLength_; } -bool TruncFileAllocationIterator::finished() -{ - return offset_ == totalLength_; -} +bool TruncFileAllocationIterator::finished() { return offset_ == totalLength_; } -int64_t TruncFileAllocationIterator::getCurrentLength() -{ - return offset_; -} +int64_t TruncFileAllocationIterator::getCurrentLength() { return offset_; } -int64_t TruncFileAllocationIterator::getTotalLength() -{ - return totalLength_; -} +int64_t TruncFileAllocationIterator::getTotalLength() { return totalLength_; } } // namespace aria2 |
