public void WriteFile(string fileName, byte[] fileContents) { IntPtr num = Marshal.AllocHGlobal(fileContents.Length); Marshal.Copy(fileContents, 0, num, fileContents.Length); RemoteStorage.SteamUnityAPI_SteamRemoteStorage_WriteFile(this._remoteStorage, fileName, num, fileContents.Length); Marshal.FreeHGlobal(num); }
internal RemoteStorage() { this._remoteStorage = RemoteStorage.SteamUnityAPI_SteamRemoteStorage(); }
public void WriteFile(string fileName, string fileContents) { RemoteStorage.SteamUnityAPI_SteamRemoteStorage_WriteFile(this._remoteStorage, fileName, Marshal.StringToHGlobalAnsi(fileContents), fileContents.Length); }
public FileEnumator(RemoteStorage remoteStorage) { this._remoteStorage = remoteStorage; this._index = -1; }
public bool FilePersisted(string fileName) { return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_FilePersisted(this._remoteStorage, fileName)); }
public void DeleteFile(string fileName) { RemoteStorage.SteamUnityAPI_SteamRemoteStorage_DeleteFile(this._remoteStorage, fileName); }
public void ForgetFile(string fileName) { RemoteStorage.SteamUnityAPI_SteamRemoteStorage_ForgetFile(this._remoteStorage, fileName); }
public int GetFileSize(string fileName) { return(RemoteStorage.SteamUnityAPI_SteamRemoteStorage_GetFileSize(this._remoteStorage, fileName)); }