public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.ATC_Data from, ref __ATC_Data to)
 {
     if (from == null)
     {
         return(V_COPYIN_RESULT.INVALID);
     }
     to.aircraftID = from.aircraftID;
     if (from.tailNumber == null)
     {
         return(V_COPYIN_RESULT.INVALID);
     }
     // Unbounded string: bounds check not required...
     if (!Write(c.getBase(typePtr), ref to.tailNumber, from.tailNumber))
     {
         return(V_COPYIN_RESULT.OUT_OF_MEMORY);
     }
     {
         V_COPYIN_RESULT result = attr2Marshaler.CopyIn(typePtr, from.position, ref to.position);
         if (result != V_COPYIN_RESULT.OK)
         {
             return(result);
         }
     }
     to.time = from.time;
     return(V_COPYIN_RESULT.OK);
 }
        public override void CopyOut(System.IntPtr from, System.IntPtr to)
        {
            __ATC_Data nativeImg     = (__ATC_Data)Marshal.PtrToStructure(from, typeof(__ATC_Data));
            GCHandle   tmpGCHandleTo = GCHandle.FromIntPtr(to);

            DM.ATC_Data toObj = tmpGCHandleTo.Target as DM.ATC_Data;
            CopyOut(ref nativeImg, ref toObj);
            tmpGCHandleTo.Target = toObj;
        }
 public static void CopyOut(ref __ATC_Data from, ref DM.ATC_Data to)
 {
     if (to == null)
     {
         to = new DM.ATC_Data();
     }
     to.aircraftID = from.aircraftID;
     to.tailNumber = ReadString(from.tailNumber);
     DM.__l_WGS84Marshaler.CopyOut(ref from.position, ref to.position);
     to.time = from.time;
 }
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.ATC_Data from, System.IntPtr to)
        {
            __ATC_Data      nativeImg = new __ATC_Data();
            V_COPYIN_RESULT result    = CopyIn(typePtr, from, ref nativeImg);

            if (result == V_COPYIN_RESULT.OK)
            {
                Marshal.StructureToPtr(nativeImg, to, false);
            }
            return(result);
        }
        public static void StaticCopyOut(System.IntPtr from, ref DM.ATC_Data to)
        {
            __ATC_Data nativeImg = (__ATC_Data)Marshal.PtrToStructure(from, typeof(__ATC_Data));

            CopyOut(ref nativeImg, ref to);
        }