EOS_Stats_CopyStatByIndex

EOS API reference page for EOS_Stats_CopyStatByIndex

阅读时间1分钟

This function is part of the Stats Interface.

Remarks

Fetches a stat from a given index. Use EOS_Stats_Stat_Release when finished with the data.

Return Value

  • EOS_Success if the information is available and passed out in OutStat

  • EOS_InvalidParameters if you pass a null pointer for the out parameter

  • EOS_NotFound if the stat is not found

See Also

EOS_Stats_Stat_Release

Parameters

EOS_Stats_CopyStatByIndex

Parameter Type And NameUsage Information
EOS_HStats Handle
const EOS_Stats_CopyStatByIndexOptions* OptionsStructure containing the Product User ID and index being accessed
EOS_Stats_Stat** OutStatThe stat data for the given index, if it exists and is valid

If successful, this function provides data to the caller through an output parameter. Once you are finished with the data, you must release it by making the appropriate call into the EOS SDK.