// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices
{
public sealed partial class Common
{
///
/// An invalid notification ID
///
public const ulong InvalidNotificationid = ((ulong)0);
///
/// A macro to identify an unknown integrated platform.
///
public static readonly Utf8String IptUnknown = (string)null;
///
/// The most recent version of the structs.
///
public const int PagequeryApiLatest = 1;
///
/// The default MaxCount used for a when the API allows the to be omitted.
///
public const int PagequeryMaxcountDefault = 10;
///
/// The maximum MaxCount used for a .
///
public const int PagequeryMaxcountMaximum = 100;
///
/// DEPRECATED! Use instead.
///
public const int PaginationApiLatest = PagequeryApiLatest;
///
/// Returns whether a result is to be considered the final result, or false if the callback that returned this result
/// will be called again either after some time or from another action.
///
/// The result to check against being a final result for an operation
///
/// True if this result means the operation is complete, false otherwise
///
public static bool IsOperationComplete(Result result)
{
var funcResult = Bindings.EOS_EResult_IsOperationComplete(result);
bool funcResultReturn;
Helper.Get(funcResult, out funcResultReturn);
return funcResultReturn;
}
///
/// Returns a string representation of an .
/// The return value is never null.
/// The return value must not be freed.
///
/// Example: () returns "EOS_Success"
///
public static Utf8String ToString(Result result)
{
var funcResult = Bindings.EOS_EResult_ToString(result);
Utf8String funcResultReturn;
Helper.Get(funcResult, out funcResultReturn);
return funcResultReturn;
}
///
/// Encode a byte array into hex encoded string
///
///
/// An that indicates whether the byte array was converted and copied into the OutBuffer.
/// if the encoding was successful and passed out in OutBuffer
/// if you pass a null pointer on invalid length for any of the parameters
/// - The OutBuffer is not large enough to receive the encoding. InOutBufferLength contains the required minimum length to perform the operation successfully.
///
public static Result ToString(System.ArraySegment byteArray, out Utf8String outBuffer)
{
var byteArrayAddress = System.IntPtr.Zero;
uint length;
Helper.Set(byteArray, ref byteArrayAddress, out length);
uint inOutBufferLength = 1024;
System.IntPtr outBufferAddress = Helper.AddAllocation(inOutBufferLength);
var funcResult = Bindings.EOS_ByteArray_ToString(byteArrayAddress, length, outBufferAddress, ref inOutBufferLength);
Helper.Dispose(ref byteArrayAddress);
Helper.Get(outBufferAddress, out outBuffer);
Helper.Dispose(ref outBufferAddress);
return funcResult;
}
public static Utf8String ToString(System.ArraySegment byteArray)
{
Utf8String funcResult;
ToString(byteArray, out funcResult);
return funcResult;
}
}
}