public static void CopyOut(ref __EGI_Data from, ref DM.EGI_Data to)
 {
     if (to == null)
     {
         to = new DM.EGI_Data();
     }
     DM.__l_WGS84Marshaler.CopyOut(ref from.position, ref to.position);
     to.time = from.time;
 }
        public override void CopyOut(System.IntPtr from, System.IntPtr to)
        {
            __EGI_Data nativeImg     = (__EGI_Data)Marshal.PtrToStructure(from, typeof(__EGI_Data));
            GCHandle   tmpGCHandleTo = GCHandle.FromIntPtr(to);

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

            CopyOut(ref nativeImg, ref to);
        }