public void Set(GetFileMetadataCountOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = PlayerDataStorageInterface.GetfilemetadatacountoptionsApiLatest;
         LocalUserId  = other.LocalUserId;
     }
 }
Пример #2
0
        /// <summary>
        /// Get the count of files we have previously queried information for and files we have previously read from / written to.
        /// <seealso cref="CopyFileMetadataAtIndex" />
        /// </summary>
        /// <param name="options">Object containing properties related to which user is requesting the metadata count</param>
        /// <returns>
        /// If successful, the count of metadata currently cached. Returns 0 on failure.
        /// </returns>
        public uint GetFileMetadataCount(GetFileMetadataCountOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetFileMetadataCountOptionsInternal, GetFileMetadataCountOptions>(ref optionsAddress, options);

            var funcResult = EOS_TitleStorage_GetFileMetadataCount(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            return(funcResult);
        }
        /// <summary>
        /// Get the count of files we have previously queried information for and files we have previously read from / written to.
        /// <seealso cref="CopyFileMetadataAtIndex" />
        /// </summary>
        /// <param name="getFileMetadataCountOptions">Object containing properties related to which user is requesting the metadata count</param>
        /// <param name="outFileMetadataCount">If successful, the count of metadata currently cached</param>
        /// <returns>
        /// <see cref="Result" />::<see cref="Result.Success" /> if the input was valid, otherwise an error result explaining what went wrong
        /// </returns>
        public Result GetFileMetadataCount(GetFileMetadataCountOptions getFileMetadataCountOptions, out int outFileMetadataCount)
        {
            System.IntPtr getFileMetadataCountOptionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetFileMetadataCountOptionsInternal, GetFileMetadataCountOptions>(ref getFileMetadataCountOptionsAddress, getFileMetadataCountOptions);

            outFileMetadataCount = Helper.GetDefault <int>();

            var funcResult = EOS_PlayerDataStorage_GetFileMetadataCount(InnerHandle, getFileMetadataCountOptionsAddress, ref outFileMetadataCount);

            Helper.TryMarshalDispose(ref getFileMetadataCountOptionsAddress);

            return(funcResult);
        }