public FastcallCalculatorFunctionPointerTest()
 {
     _nativeCalculator        = new FastcallCalculator();
     _addFunctionPointer      = ReloadedHooks.Instance.CreateWrapper <CalculatorFunction>((long)_nativeCalculator.Add, out var _);
     _subFunctionPointer      = ReloadedHooks.Instance.CreateWrapper <CalculatorFunction>((long)_nativeCalculator.Subtract, out var _);
     _multiplyFunctionPointer = ReloadedHooks.Instance.CreateWrapper <CalculatorFunction>((long)_nativeCalculator.Multiply, out var _);
     _divideFunctionPointer   = ReloadedHooks.Instance.CreateWrapper <CalculatorFunction>((long)_nativeCalculator.Divide, out var _);
 }
 public FastcallCalculatorDoubleHookTest()
 {
     _calculator       = new FastcallCalculator();
     _addFunction      = Wrapper.Create <FastcallCalculator.AddFunction>((long)_calculator.Add);
     _subtractFunction = Wrapper.Create <FastcallCalculator.SubtractFunction>((long)_calculator.Subtract);
     _divideFunction   = Wrapper.Create <FastcallCalculator.DivideFunction>((long)_calculator.Divide);
     _multiplyFunction = Wrapper.Create <FastcallCalculator.MultiplyFunction>((long)_calculator.Multiply);
 }
 public FastcallCalculatorHookTest()
 {
     _calculator       = new FastcallCalculator();
     _addFunction      = ReloadedHooks.Instance.CreateWrapper <FastcallCalculator.AddFunction>((long)_calculator.Add, out var addFunction);
     _subtractFunction = ReloadedHooks.Instance.CreateWrapper <FastcallCalculator.SubtractFunction>((long)_calculator.Subtract, out _);
     _divideFunction   = ReloadedHooks.Instance.CreateWrapper <FastcallCalculator.DivideFunction>((long)_calculator.Divide, out _);
     _multiplyFunction = ReloadedHooks.Instance.CreateWrapper <FastcallCalculator.MultiplyFunction>((long)_calculator.Multiply, out var mulFunction);
 }