MCPcopy Create free account
hub / github.com/PDAL/PDAL / allocateSpace

Method allocateSpace

plugins/e57/libE57Format/src/ImageFileImpl.cpp:369–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 5

packetWriteMethod · 0.80
packetWriteIndexMethod · 0.80
BlobNodeImplMethod · 0.80

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected