public int UGCRead(SteamTypes.UGCHandle handle, byte[] data, uint offset, UGCReadAction action) { CheckIfUsable(); using (NativeBuffer buffer = new NativeBuffer(data)) { int bytesRead = NativeMethods.Cloud_UGCRead(handle.AsUInt64, buffer.UnmanagedMemory, buffer.UnmanagedSize, offset, (int)action); buffer.ReadFromUnmanagedMemory(bytesRead); return bytesRead; } }
/// <summary> /// Invokes CloudDownloadUGCResult /// </summary> /// <param name="handle"></param> public void UGCDownload(SteamTypes.UGCHandle handle, uint unPriority) { CheckIfUsable(); NativeMethods.Cloud_UGCDownload(handle.AsUInt64, unPriority); }