group
group__libshare__fsmem
Provides the ability to read and write entire files on the local hard-disk.

Local File Buffer

function
int shfs_mem_read
(char *path, shbuf_t *buff)
Read a file from the local filesystem into a memory buffer.
function
int shfs_read_mem
(char *path, char **data_p, size_t *data_len_p)
Read a file from the local filesystem into memory.
function
int shfs_mem_write
(char *path, shbuf_t *buff)
Write a file from a memory buffer to the local filesystem.
function
int shfs_write_mem
(char *path, void *data, size_t data_len)
Write a file from memory to the local filesystem.