2024-04-18 11:37:33 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2024-06-11 13:39:06 +00:00
|
|
|
#ifdef __cplusplus
|
2024-04-18 11:37:33 +00:00
|
|
|
extern "C" {
|
2024-06-11 13:39:06 +00:00
|
|
|
#endif
|
2024-04-18 11:37:33 +00:00
|
|
|
void* fileio_open(const char* filename);
|
|
|
|
|
|
|
|
void fileio_close(void* fhandle);
|
|
|
|
|
|
|
|
size_t fileio_read(void* fhandle, void *buf, size_t len);
|
|
|
|
|
|
|
|
int fileio_getc(void* fhandle);
|
|
|
|
|
|
|
|
size_t fileio_tell(void* fhandle);
|
|
|
|
|
|
|
|
size_t fileio_seek(void* fhandle, size_t pos);
|
2024-06-11 13:39:06 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|