[][src]Module safe_app::ffi::nfs

NFS API.

Structs

FileContext

Holds context for file operations, depending on the mode.

Constants

GET_NEXT_VERSION

Constant to pass to dir_update_file() or dir_delete_file() when the next version should be retrieved and used automatically.

Statics

FILE_READ_TO_END

Read entire contents of a file.

OPEN_MODE_APPEND

Appends to existing data in the file. Falls back to OPEN_MODE_OVERWRITE if it encounters an empty file. If it is known ahead of time that a file is empty, use OPEN_MODE_OVERWRITE instead to avoid incurring an unnecessary GET.

OPEN_MODE_OVERWRITE

Replaces the entire content of the file when writing data.

OPEN_MODE_READ

Open file to read.

Functions

dir_delete_file

Delete the file in the parent directory.

dir_fetch_file

Retrieve file with the given name, and its version, from the directory.

dir_insert_file

Insert the file into the parent directory.

dir_update_file

Replace the file in the parent directory.

file_close

Close is invoked only after all the data is completely written. The file is saved only when close is invoked.

file_open

Open the file to read or write its contents.

file_read

Read data from file.

file_size

Get a size of file opened for read.

file_write

Write data to file in smaller chunks.