Class NativePInvokeCallbackAttribute
You likely don't want this attribute. This is an IL2CPP attribute to signify a pinvoke method is purely unmanaged and can thus be invoked directly from native code. As a result Marshal.GetFunctionPointerForDelegate(decoratedMethod) will not generate a reverse callback wrapper to attach to the managed VM. Do not use this attribute if your method requires managed data/types, doing so will result in undefined behaviour (almost certainly a crash at some point). Most users likely want to use [MonoPInvokeCallback] instead as that will handle all necessary managed type management when pinvoked.
Namespace: Global Namespace
Syntax
public class NativePInvokeCallbackAttribute : Attribute, _Attribute
Remarks
This attribute is useful for passing delegates of Bursted functions from managed code into native code where they will be invoked. Without this attribute, IL2CPP will generate a reverse callback wrapper for invoking the managed delegate from native code and will attach to the VM, which is unsupported in DOTS Runtime from native threads.