CloudEvent

File read and write - CloudEvent

Event data can be saved to a file and restored from a file easily. For more information about the file system, see File system and File system API.

loadData - CloudEvent

Loads the data in a CloudEvent from a file. Note that this only loads the data, not the other parameters like name, content-type, etc.

Returns 0 on success or a non-zero system error code.

// PROTOTYPE
CloudEvent& loadData(const char* path)

saveData - CloudEvent

Saves the data in a CloudEvent to a file. Note that this only saves the data, not the other parameters like name, content-type, etc.

Returns 0 on success or a non-zero system error code.

// PROTOTYPE
int saveData(const char* path)