コード例 #1
0
        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;
            }
        }
コード例 #2
0
 /// <summary>
 /// Invokes CloudDownloadUGCResult
 /// </summary>
 /// <param name="handle"></param>
 public void UGCDownload(SteamTypes.UGCHandle handle, uint unPriority)
 {
     CheckIfUsable();
     NativeMethods.Cloud_UGCDownload(handle.AsUInt64, unPriority);
 }