// 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 NULL, 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 (excluding 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 NULL 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 string outBuffer) { System.IntPtr outBufferAddress = System.IntPtr.Zero; int inOutBufferLength = 1024; Helper.TryMarshalAllocate(ref outBufferAddress, inOutBufferLength); var funcResult = Bindings.EOS_ContinuanceToken_ToString(InnerHandle, outBufferAddress, ref inOutBufferLength); Helper.TryMarshalGet(outBufferAddress, out outBuffer); Helper.TryMarshalDispose(ref outBufferAddress); return funcResult; } public override string ToString() { string funcResult; ToString(out funcResult); return funcResult; } } }