| 367 | } |
| 368 | |
| 369 | uint64_t ImageFileImpl::allocateSpace( uint64_t byteCount, bool doExtendNow ) |
| 370 | { |
| 371 | uint64_t oldLogicalStart = unusedLogicalStart_; |
| 372 | |
| 373 | // Reserve space at end of file |
| 374 | unusedLogicalStart_ += byteCount; |
| 375 | |
| 376 | // If caller won't write to file immediately, it should request that the file be extended with |
| 377 | // zeros here. |
| 378 | if ( doExtendNow ) |
| 379 | { |
| 380 | file_->extend( unusedLogicalStart_ ); |
| 381 | } |
| 382 | |
| 383 | return oldLogicalStart; |
| 384 | } |
| 385 | |
| 386 | CheckedFile *ImageFileImpl::file() const |
| 387 | { |
no test coverage detected