public static void CopyOut(ref __Aircraft_Config from, ref DM.Aircraft_Config to)
 {
     if (to == null)
     {
         to = new DM.Aircraft_Config();
     }
     to.aircraftID = from.aircraftID;
     to.tailNumber = ReadString(from.tailNumber);
 }
        public override void CopyOut(System.IntPtr from, System.IntPtr to)
        {
            __Aircraft_Config nativeImg     = (__Aircraft_Config)Marshal.PtrToStructure(from, typeof(__Aircraft_Config));
            GCHandle          tmpGCHandleTo = GCHandle.FromIntPtr(to);

            DM.Aircraft_Config toObj = tmpGCHandleTo.Target as DM.Aircraft_Config;
            CopyOut(ref nativeImg, ref toObj);
            tmpGCHandleTo.Target = toObj;
        }
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.Aircraft_Config from, System.IntPtr to)
        {
            __Aircraft_Config nativeImg = new __Aircraft_Config();
            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.Aircraft_Config to)
        {
            __Aircraft_Config nativeImg = (__Aircraft_Config)Marshal.PtrToStructure(from, typeof(__Aircraft_Config));

            CopyOut(ref nativeImg, ref to);
        }
 public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.Aircraft_Config from, ref __Aircraft_Config 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);
     }
     return(V_COPYIN_RESULT.OK);
 }