#include <io_streamcount.h>
Inherited by IO_Def, ewald, restart, and test_io_bandwidth.
Definition at line 17 of file io_streamcount.h.
◆ get_io_byte_count()
long long get_io_byte_count |
( |
void |
| ) |
|
|
inline |
◆ my_fread()
size_t my_fread |
( |
void * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
FILE * |
stream |
|
) |
| |
|
inline |
A wrapper for the fread() function.
This catches I/O errors occuring for fread(). In this case we better stop. If stream is null, no attempt at readingis done.
- Parameters
-
ptr | pointer to the beginning of memory location where to store data |
size | size in bytes of a single data element |
nmemb | number of elements to be read |
stream | pointer to the nput stream |
- Returns
- number of elements read from stream
Definition at line 66 of file io_streamcount.h.
◆ my_fwrite()
size_t my_fwrite |
( |
const void * |
ptr, |
|
|
size_t |
size, |
|
|
size_t |
nmemb, |
|
|
FILE * |
stream |
|
) |
| |
|
inline |
A wrapper for the fwrite() function.
This catches I/O errors occuring for fwrite(). In this case we better stop. If stream is null, no attempt at writing is done.
- Parameters
-
ptr | pointer to the beginning of data to write |
size | size in bytes of a single data element |
nmemb | number of elements to be written |
stream | pointer to the output stream |
- Returns
- number of elements written to stream
Definition at line 33 of file io_streamcount.h.
◆ reset_io_byte_count()
void reset_io_byte_count |
( |
void |
| ) |
|
|
inline |
◆ byte_count
The documentation for this class was generated from the following file: