38 #if !defined(ION_FILE_H_) 41 #if defined(__cplusplus) 45 #include "../key_value/kv_system.h" 49 #define ION_FILE_START SEEK_SET 50 #define ION_FILE_END SEEK_END 57 ((ion_file_handle_t) { NULL, -1 } \ 60 typedef struct file_handle {
71 #define ION_NOFILE ((ion_file_handle_t) (NULL)) 75 #define ION_FILE_NULL -1 89 ion_file_handle_t file
99 ion_file_handle_t file,
100 ion_file_offset_t seek_to,
106 ion_file_handle_t file
111 ion_file_handle_t file
116 ion_file_handle_t file,
117 unsigned int num_bytes,
123 ion_file_handle_t file,
124 ion_file_offset_t offset,
125 unsigned int num_bytes,
131 ion_file_handle_t file,
132 unsigned int num_bytes,
138 ion_file_handle_t file,
139 ion_file_offset_t offset,
140 unsigned int num_bytes,
144 #if defined(__cplusplus) unsigned char ion_byte_t
A byte type.
ion_err_t ion_fread(ion_file_handle_t file, unsigned int num_bytes, ion_byte_t *write_to)
ion_err_t ion_fseek(ion_file_handle_t file, ion_file_offset_t seek_to, int origin)
ion_err_t ion_fwrite(ion_file_handle_t file, unsigned int num_bytes, ion_byte_t *to_write)
This code contains definitions for stdio.h file functions for Arduino flash libraries.
char ion_err_t
The error type used to store error codes.
ion_err_t ion_fremove(char *name)
ion_file_offset_t ion_ftell(ion_file_handle_t file)
ion_boolean_t ion_fexists(char *name)
ion_err_t ion_fclose(ion_file_handle_t file)
ion_file_handle_t ion_fopen(char *name)
ion_err_t ion_fwrite_at(ion_file_handle_t file, ion_file_offset_t offset, unsigned int num_bytes, ion_byte_t *to_write)
ion_err_t ion_fread_at(ion_file_handle_t file, ion_file_offset_t offset, unsigned int num_bytes, ion_byte_t *write_to)
char ion_boolean_t
A boolean type.
ion_file_offset_t ion_fend(ion_file_handle_t file)