[][src]Function gestalt::save_raw

pub fn save_raw(
    location: Location,
    appname: &str,
    profile: &str,
    data: &[u8]
) -> Result<(), SaveError>

Save some raw bytes to the given profile

Different platforms may have different save locations: on the Web, data is saved in local storage, on the desktop, it is stored in some appropriate home-directory folder.

The appname should be some constant; this is used to name the file to place the data in on desktop platforms. The profile should allow different things to save for the same app, such as save for different players in a game.