mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 05:21:09 +03:00
we HATE the garbage collector
This commit is contained in:
parent
cca1b0305e
commit
285e88b332
@ -60,7 +60,9 @@ namespace Steamworks
|
||||
private static readonly Dictionary<IntPtr, ReferenceCounter> ReferenceCounters =
|
||||
new Dictionary<IntPtr, ReferenceCounter>( 1024 );
|
||||
|
||||
public static readonly IntPtr FreeFunctionPointer = Marshal.GetFunctionPointerForDelegate<FreeFn>( Free );
|
||||
private static readonly FreeFn FreeFunctionPin = new FreeFn( Free );
|
||||
|
||||
public static readonly IntPtr FreeFunctionPointer = Marshal.GetFunctionPointerForDelegate( FreeFunctionPin );
|
||||
|
||||
public static IntPtr Get( int size, int referenceCount )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user