// Copyright Epic Games, Inc. All Rights Reserved. // This file is automatically generated. Changes to this file may be overwritten. namespace Epic.OnlineServices.PlayerDataStorage { /// /// Input data for the function /// public struct DuplicateFileOptions { /// /// The Product User ID of the local user who authorized the duplication of the requested file; must be the original file's owner /// public ProductUserId LocalUserId { get; set; } /// /// The name of the existing file to duplicate /// public Utf8String SourceFilename { get; set; } /// /// The name of the new file /// public Utf8String DestinationFilename { get; set; } } [System.Runtime.InteropServices.StructLayout(System.Runtime.InteropServices.LayoutKind.Sequential, Pack = 8)] internal struct DuplicateFileOptionsInternal : ISettable, System.IDisposable { private int m_ApiVersion; private System.IntPtr m_LocalUserId; private System.IntPtr m_SourceFilename; private System.IntPtr m_DestinationFilename; public ProductUserId LocalUserId { set { Helper.Set(value, ref m_LocalUserId); } } public Utf8String SourceFilename { set { Helper.Set(value, ref m_SourceFilename); } } public Utf8String DestinationFilename { set { Helper.Set(value, ref m_DestinationFilename); } } public void Set(ref DuplicateFileOptions other) { m_ApiVersion = PlayerDataStorageInterface.DuplicatefileoptionsApiLatest; LocalUserId = other.LocalUserId; SourceFilename = other.SourceFilename; DestinationFilename = other.DestinationFilename; } public void Set(ref DuplicateFileOptions? other) { if (other.HasValue) { m_ApiVersion = PlayerDataStorageInterface.DuplicatefileoptionsApiLatest; LocalUserId = other.Value.LocalUserId; SourceFilename = other.Value.SourceFilename; DestinationFilename = other.Value.DestinationFilename; } } public void Dispose() { Helper.Dispose(ref m_LocalUserId); Helper.Dispose(ref m_SourceFilename); Helper.Dispose(ref m_DestinationFilename); } } }