persist/include/persist/core/storage/file_storage.hpp
/**
 * Get content size of the file
 *
 * @param file opened file stream object
 * @returns size of the file
 */
Get content size of the file
@param file opened file stream object
@returns size of the file
Get content size of the file @param file opened file stream object @returns size of the file
static size_t size(std::fstream &file) {
  std::streampos file_size;
  file.seekg(0, std::ios_base::end);
  file_size = file.tellg();
  file.seekg(0, std::ios_base::beg);
  return size_t(file_size);
}
static size_t size ( std :: fstream & file ) { std :: streampos file_size ; file . seekg ( 0 , std :: ios_base :: end ) ; file_size = file . tellg ( ) ; file . seekg ( 0 , std :: ios_base :: beg ) ; return size_t ( file_size ) ; }
Get content size of the file
 @param file opened file stream object
 @returns size of the file
Get content size of the file @param file opened file stream object @returns size of the file