internal void SetEventCallbacks(jvmtiEventCallbacks callbacks) { int sizeOfCallbacks = Marshal.SizeOf(callbacks); ThrowOnFailure(_rawInterface.SetEventCallbacks(_env, ref callbacks, sizeOfCallbacks)); }