// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices
{
public static class Common
{
///
/// An invalid notification ID
///
public const ulong InvalidNotificationid = ((ulong)0);
///
/// 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.TryMarshalGet(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 ""
///
public static string ToString(Result result)
{
var funcResult = Bindings.EOS_EResult_ToString(result);
string funcResultReturn;
Helper.TryMarshalGet(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(byte[] byteArray, out string outBuffer)
{
var byteArrayAddress = System.IntPtr.Zero;
uint length;
Helper.TryMarshalSet(ref byteArrayAddress, byteArray, out length);
System.IntPtr outBufferAddress = System.IntPtr.Zero;
uint inOutBufferLength = 1024;
Helper.TryMarshalAllocate(ref outBufferAddress, inOutBufferLength);
var funcResult = Bindings.EOS_ByteArray_ToString(byteArrayAddress, length, outBufferAddress, ref inOutBufferLength);
Helper.TryMarshalDispose(ref byteArrayAddress);
Helper.TryMarshalGet(outBufferAddress, out outBuffer);
Helper.TryMarshalDispose(ref outBufferAddress);
return funcResult;
}
public static string ToString(byte[] byteArray)
{
string funcResult;
ToString(byteArray, out funcResult);
return funcResult;
}
}
}