Integrating with other storage APIs

Sometimes it’s necessary to integrate Easy Save’s API with another service’s storage API. For example, to support consoles, or to integrate with cloud storage plugins.

This can be achieved by using an ES3File to write to memory instead of local storage, and retrieving the contents of the ES3File as a byte array or string.

Saving as a string or byte array

To do this, you can do the following:

You can then store this byte array or string using the storage API you are integrating with.

Loading from a string or byte array

The storage API should then allow you to retrieve this data as a string or byte array.

You can then load this string or byte array into an ES3File and read from it.