int32_t f3s_v2write (f3s_dbase_t *dbase,
f3s_access_t *access,
uint32_t flags,
uint32_t text_offset,
int32_t buffer_size,
uint8_t *buffer);
This function writes buffer_size bytes from buffer to address text_offset.
On success, it should return the number of bytes written. If an error occurs, it should return -1 with errno set to one of the following: