/// <summary> /// Sets the delegate. /// </summary> /// <param name="createMemoryMappedFile">Creates a memory mapped file delegate.</param> /// <param name="createMemoryMappedSharedFile">Creates a shared memory mapped file delegate.</param> /// <param name="getSizeDelegate">Delegate to calculate the size in-memory of the given type.</param> public static void SetDelegates(NativeMemoryMappedFileCreate createMemoryMappedFile, NativeMemoryMappedFileSharedCreate createMemoryMappedSharedFile, SizeDelegate getSizeDelegate) { _nativeMemoryMappedFileDelegate = createMemoryMappedFile; _nativeMemoryMappedFileSharedDelegate = createMemoryMappedSharedFile; _getSizeDelegate = getSizeDelegate; }