(void* ptr)
| 169 | } |
| 170 | |
| 171 | internal static void NativeFree(void* ptr) |
| 172 | { |
| 173 | NativeMemory.AlignedFree(ptr); |
| 174 | } |
| 175 | |
| 176 | /// <summary> |
| 177 | /// Converts a delegate into a function pointer that is callable from unmanaged code via <see cref="Marshal.GetFunctionPointerForDelegate{TDelegate}"/> but cached <paramref name="d"/> delegate to prevent collecting it by GC. |