private void GetCallback(IntPtr pointer, IntPtr clientData) { float[] data = new float[] { X, Y, Z }; Marshal.Copy(data, 0, pointer, data.Length); }