file operation functions
More...
◆ spdk_posix_file_load()
void* spdk_posix_file_load |
( |
FILE * |
file, |
|
|
size_t * |
size |
|
) |
| |
Load the input file content into a data buffer.
- Parameters
-
file | File handle. |
size | Size of bytes read from the file. |
- Returns
- data contains the content on success, NULL on failure.
◆ spdk_posix_file_load_from_name()
void* spdk_posix_file_load_from_name |
( |
const char * |
file_name, |
|
|
size_t * |
size |
|
) |
| |
Load content of a given file name into a data buffer.
- Parameters
-
file_name | File name. |
size | Size of bytes read from the file. |
- Returns
- data containing the content on success, NULL on failure.