private void GetCallback(IntPtr pointer, IntPtr clientData) { double[] data = new double[] { Value }; Marshal.Copy(data, 0, pointer, data.Length); }