ailia
1.5.0.0
|
user-defined callback More...
Go to the source code of this file.
Classes | |
struct | _ailiaFileCallback |
Macros | |
#define | AILIA_USER_API |
#define | AILIA_FSIZE_RETURN_TYPE long long |
#define | AILIA_USER_API_SUCCESS (0) |
Successful. More... | |
#define | AILIA_USER_API_FAILED (-1) |
Failed. More... | |
#define | AILIA_FILE_CALLBACK_VERSION (1) |
Struct version. More... | |
Typedefs | |
typedef void *(AILIA_USER_API * | AILIA_USER_API_FOPEN) (const void *) |
Opens a file. More... | |
typedef int(AILIA_USER_API * | AILIA_USER_API_FSEEK) (void *, AILIA_FSIZE_RETURN_TYPE) |
It seeks the file specified. More... | |
typedef AILIA_FSIZE_RETURN_TYPE(AILIA_USER_API * | AILIA_USER_API_FTELL) (void *) |
Gets the current position in the file. More... | |
typedef AILIA_FSIZE_RETURN_TYPE(AILIA_USER_API * | AILIA_USER_API_FSIZE) (void *) |
Gets the size of the file. More... | |
typedef int(AILIA_USER_API * | AILIA_USER_API_FREAD) (void *, AILIA_FSIZE_RETURN_TYPE, void *) |
Reads data from the file. More... | |
typedef int(AILIA_USER_API * | AILIA_USER_API_FCLOSE) (void *) |
Closes the file. More... | |
typedef struct _ailiaFileCallback | ailiaFileCallback |
user-defined callback
The file access callback function is called by a single thread per network instance. If a common callback function is given to multiple instances, the callback function must be thread-safe. Also, do not throw an exception from the callback function, instead use AILIA_USER_API_FAILED to make error notifications.
#define AILIA_FILE_CALLBACK_VERSION (1) |
Struct version.
#define AILIA_FSIZE_RETURN_TYPE long long |
#define AILIA_USER_API |
#define AILIA_USER_API_FAILED (-1) |
Failed.
#define AILIA_USER_API_SUCCESS (0) |
Successful.
typedef int(AILIA_USER_API* AILIA_USER_API_FCLOSE) (void *) |
Closes the file.
void | * A user-defined file pointer |
typedef void*(AILIA_USER_API* AILIA_USER_API_FOPEN) (const void *) |
Opens a file.
const | void * fopen_args given to ailiaOpenStreamEx() or ailiaOpenWeightEx |
typedef int(AILIA_USER_API* AILIA_USER_API_FREAD) (void *, AILIA_FSIZE_RETURN_TYPE, void *) |
Reads data from the file.
void | * A pointer to the storage location of the data to be read |
typedef int(AILIA_USER_API* AILIA_USER_API_FSEEK) (void *, AILIA_FSIZE_RETURN_TYPE) |
It seeks the file specified.
void | * A user-defined file pointer |
typedef AILIA_FSIZE_RETURN_TYPE(AILIA_USER_API* AILIA_USER_API_FSIZE) (void *) |
Gets the size of the file.
void | * A user-defined file pointer |
typedef AILIA_FSIZE_RETURN_TYPE(AILIA_USER_API* AILIA_USER_API_FTELL) (void *) |
Gets the current position in the file.
void | * A user-defined file pointer |
typedef struct _ailiaFileCallback ailiaFileCallback |