You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
950 B

// Copyright Epic Games, Inc. All Rights Reserved.
// This file is automatically generated. Changes to this file may be overwritten.
namespace Epic.OnlineServices.Platform
{
/// <summary>
/// Function prototype type definition for functions that reallocate memory.
///
/// Functions passed to <see cref="PlatformInterface.Initialize" /> to serve as memory reallocators should return a pointer to the reallocated memory.
/// The returned pointer should have at least SizeInBytes available capacity and the memory address should be a multiple of alignment.
/// The SDK will always call the provided function with an Alignment that is a power of 2.
/// Reallocation failures should return a null pointer.
/// </summary>
[System.Runtime.InteropServices.UnmanagedFunctionPointer(Config.LibraryCallingConvention)]
public delegate System.IntPtr ReallocateMemoryFunc(System.IntPtr pointer, System.UIntPtr sizeInBytes, System.UIntPtr alignment);
}