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);
 }
Exemplo n.º 2
0
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, Networking from, System.IntPtr to)
        {
            __Networking    nativeImg = new __Networking();
            V_COPYIN_RESULT result    = CopyIn(typePtr, from, ref nativeImg);

            if (result == V_COPYIN_RESULT.OK)
            {
                Marshal.StructureToPtr(nativeImg, to, false);
            }
            return(result);
        }
Exemplo n.º 3
0
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, ContinueScale from, System.IntPtr to)
        {
            __ContinueScale nativeImg = new __ContinueScale();
            V_COPYIN_RESULT result    = CopyIn(typePtr, from, ref nativeImg);

            if (result == V_COPYIN_RESULT.OK)
            {
                Marshal.StructureToPtr(nativeImg, to, false);
            }
            return(result);
        }
        public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.ATC_Function from, System.IntPtr to)
        {
            __ATC_Function  nativeImg = new __ATC_Function();
            V_COPYIN_RESULT result    = CopyIn(typePtr, from, ref nativeImg);

            if (result == V_COPYIN_RESULT.OK)
            {
                Marshal.StructureToPtr(nativeImg, to, false);
            }
            return(result);
        }
 public V_COPYIN_RESULT CopyIn(System.IntPtr typePtr, DM.EGI_Data from, ref __EGI_Data to)
 {
     if (from == null)
     {
         return(V_COPYIN_RESULT.INVALID);
     }
     {
         V_COPYIN_RESULT result = attr0Marshaler.CopyIn(typePtr, from.position, ref to.position);
         if (result != V_COPYIN_RESULT.OK)
         {
             return(result);
         }
     }
     to.time = from.time;
     return(V_COPYIN_RESULT.OK);
 }