public void Set(GetFriendAtIndexOptions other)
 {
     if (other != null)
     {
         m_ApiVersion = FriendsInterface.GetfriendatindexApiLatest;
         LocalUserId  = other.LocalUserId;
         Index        = other.Index;
     }
 }
        /// <summary>
        /// Retrieves the Epic Online Services Account ID of an entry from the friends list that has already been retrieved by the <see cref="QueryFriends" /> API.
        /// The Epic Online Services Account ID returned by this function may belong to an account that has been invited to be a friend or that has invited the local user to be a friend.
        /// To determine if the Epic Online Services Account ID returned by this function is a friend or a pending friend invitation, use the <see cref="GetStatus" /> function.
        /// <seealso cref="GetFriendsCount" />
        /// <seealso cref="GetStatus" />
        /// </summary>
        /// <param name="options">structure containing the Epic Online Services Account ID of the owner of the friends list and the index into the list</param>
        /// <returns>
        /// the Epic Online Services Account ID of the friend. Note that if the index provided is out of bounds, the returned Epic Online Services Account ID will be a "null" account ID.
        /// </returns>
        public EpicAccountId GetFriendAtIndex(GetFriendAtIndexOptions options)
        {
            System.IntPtr optionsAddress = new System.IntPtr();
            Helper.TryMarshalSet <GetFriendAtIndexOptionsInternal, GetFriendAtIndexOptions>(ref optionsAddress, options);

            var funcResult = EOS_Friends_GetFriendAtIndex(InnerHandle, optionsAddress);

            Helper.TryMarshalDispose(ref optionsAddress);

            EpicAccountId funcResultReturn;

            Helper.TryMarshalGet(funcResult, out funcResultReturn);
            return(funcResultReturn);
        }