// 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 ContinuanceToken : Handle { public ContinuanceToken() { } public ContinuanceToken(System.IntPtr innerHandle) : base(innerHandle) { } /// /// Retrieve a null-terminated stringified continuance token from an . /// /// To get the required buffer size, call once with OutBuffer set to , InOutBufferLength will contain the buffer size needed. /// Call again with valid params to get the stringified continuance token which will only contain UTF8-encoded printable characters as well as the null-terminator. /// /// The continuance token for which to retrieve the stringified version. /// The buffer into which the character data should be written /// /// The size of the OutBuffer in characters. /// The input buffer should include enough space to be null-terminated. /// When the function returns, this parameter will be filled with the length of the string copied into OutBuffer including the null-termination character. /// /// /// An that indicates whether the continuance token string was copied into the OutBuffer. /// - The OutBuffer was filled, and InOutBufferLength contains the number of characters copied into OutBuffer including the null-terminator. /// - Either OutBuffer or InOutBufferLength were passed as parameters. /// - The AccountId is invalid and cannot be stringified. /// - The OutBuffer is not large enough to receive the continuance token string. InOutBufferLength contains the required minimum length to perform the operation successfully. /// public Result ToString(out Utf8String outBuffer) { int inOutBufferLength = 1024; System.IntPtr outBufferAddress = Helper.AddAllocation(inOutBufferLength); var funcResult = Bindings.EOS_ContinuanceToken_ToString(InnerHandle, outBufferAddress, ref inOutBufferLength); Helper.Get(outBufferAddress, out outBuffer); Helper.Dispose(ref outBufferAddress); return funcResult; } public override string ToString() { Utf8String funcResult; ToString(out funcResult); return funcResult; } public override string ToString(string format, System.IFormatProvider formatProvider) { if (format != null) { return string.Format(format, ToString()); } return ToString(); } public static explicit operator Utf8String(ContinuanceToken value) { Utf8String result = null; if (value != null) { value.ToString(out result); } return result; } } }