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

Method length

plugins/e57/libE57Format/src/CheckedFile.cpp:542–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542uint64_t CheckedFile::length( OffsetMode omode )
543{
544 if ( omode == Physical )
545 {
546 if ( readOnly_ )
547 {
548 return physicalLength_;
549 }
550
551 // Current file position
552 uint64_t original_pos = lseek64( 0LL, SEEK_CUR );
553
554 // End file position
555 uint64_t end_pos = lseek64( 0LL, SEEK_END );
556
557 // Restore original position
558 lseek64( original_pos, SEEK_SET );
559
560 return end_pos;
561 }
562
563 return logicalLength_;
564}
565
566void CheckedFile::extend( uint64_t newLength, OffsetMode omode )
567{

Callers 15

writeFieldMethod · 0.45
doneMethod · 0.45
CheckedFile.cppFile · 0.45
writeXmlMethod · 0.45
closeMethod · 0.45
isElementNameExtendedMethod · 0.45
checkElementNameLegalMethod · 0.45
elementNameParseMethod · 0.45
readFileHeaderMethod · 0.45
closeMethod · 0.45
processRecordsMethod · 0.45

Calls

no outgoing calls

Tested by 1

splitFunction · 0.36