#include <stddef.h>
#include <stdint.h>
◆ oc_storage_config()
int oc_storage_config |
( |
const char * |
store | ) |
|
open the storage
- Parameters
-
- Returns
- int
◆ oc_storage_read()
long oc_storage_read |
( |
const char * |
store, |
|
|
uint8_t * |
buf, |
|
|
size_t |
size |
|
) |
| |
read from the storage
- Parameters
-
store | the path to be read |
buf | the buffer to store the contents |
size | amount of bytes to read |
- Returns
- long amount of bytes read
◆ oc_storage_write()
long oc_storage_write |
( |
const char * |
store, |
|
|
uint8_t * |
buf, |
|
|
size_t |
size |
|
) |
| |
write to storage
- Parameters
-
store | the store (file path) |
buf | the buffer to write |
size | the size of the buffer to write |
- Returns
- long >= 0 amount of bytes written on success
-
long < 0 on failure