Skip to content
  • Mark OLESEN's avatar
    ENH: improve robustness of raw reading, file size checks · 459aaad0
    Mark OLESEN authored and Andrew Heather's avatar Andrew Heather committed
    - use ignore instead of seekg/tellg to swallow input (robuster)
    
    - check for bad gcount() values
    
    - wrap Foam::fileSize() compressed/uncompressed handling into IFstream.
    
    - improve handling of compressed files in masterUncollatedFileOperation.
      Previously read into a string via stream iterators.
      Now read chunk-wise into a List of char for fewer reallocations.
    459aaad0