public object MarshalNativeToManaged(IntPtr obj) { NNGpuTestResult testResult = new NNGpuTestResult(); testResult.expected = Marshal.ReadInt32(obj); obj += 4; testResult.predicted = Marshal.ReadInt32(obj); return(testResult); }
public static extern bool TestNetworkInteration(IntPtr nn, [Out, MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NNGpuMarshalTestResult))] out NNGpuTestResult result);