|
Mila
Deep Neural Network Library
|
Functions | |
| void | fclose_check (FILE *fp, const char *file, int line) |
| Closes a file with error checking. | |
| void | Mila::Helpers::fcloseCheck (FILE *fp) |
| Closes a file with error checking. | |
| FILE * | fopen_check (const char *path, const char *mode, const char *file, int line) |
| Opens a file with error checking. | |
| FILE * | Mila::Helpers::fopenCheck (const char *path, const char *mode) |
| Opens a file with error checking. | |
| void | fread_check (void *ptr, size_t size, size_t nmemb, FILE *stream, const char *file, int line) |
| Reads from a file with error checking. | |
| void | Mila::Helpers::freadCheck (void *ptr, size_t size, size_t nmemb, FILE *stream) |
| Reads from a file with error checking. | |
| void | fseek_check (FILE *stream, long offset, int whence, const char *file, int line) |
| Seeks to a position in a file with error checking. | |
| void | Mila::Helpers::fseekCheck (FILE *stream, long offset, int whence) |
| Seeks to a position in a file with error checking. | |
| void * | malloc_check (size_t size, const char *file, int line) |
| Allocates memory with error checking. | |
| void * | Mila::Helpers::mallocCheck (size_t size) |
| Allocates memory with error checking. | |
|
externinline |
Closes a file with error checking.
| fp | Pointer to the file to be closed. |
| file | The source file name where the function is called. |
| line | The line number in the source file where the function is called. |

|
export |
Closes a file with error checking.
| fp | Pointer to the file to be closed. |

|
externinline |
Opens a file with error checking.
| path | The path to the file. |
| mode | The mode in which to open the file. |
| file | The source file name where the function is called. |
| line | The line number in the source file where the function is called. |

|
export |
Opens a file with error checking.
| path | The path to the file. |
| mode | The mode in which to open the file. |

|
externinline |
Reads from a file with error checking.
| ptr | Pointer to the buffer where the read data will be stored. |
| size | Size of each element to be read. |
| nmemb | Number of elements to be read. |
| stream | Pointer to the file stream. |
| file | The source file name where the function is called. |
| line | The line number in the source file where the function is called. |

|
export |
Reads from a file with error checking.
| ptr | Pointer to the buffer where the read data will be stored. |
| size | Size of each element to be read. |
| nmemb | Number of elements to be read. |
| stream | Pointer to the file stream. |

|
externinline |
Seeks to a position in a file with error checking.
| stream | Pointer to the file stream. |
| offset | Offset from the position specified by whence. |
| whence | Position from where offset is added. |
| file | The source file name where the function is called. |
| line | The line number in the source file where the function is called. |

|
export |
Seeks to a position in a file with error checking.
| stream | Pointer to the file stream. |
| offset | Offset from the position specified by whence. |
| whence | Position from where offset is added. |

|
externinline |
Allocates memory with error checking.
| size | The size of the memory to be allocated. |
| file | The source file name where the function is called. |
| line | The line number in the source file where the function is called. |

|
export |
Allocates memory with error checking.
| size | The size of the memory to be allocated. |
