internal static V_RESULT CopyOut(ref v_topicMatchInfo from, PublicationMatchedStatus to)
 {
     to.TotalCount             = from.totalCount;
     to.TotalCountChange       = from.totalChanged;
     to.CurrentCount           = from.currentCount;
     to.CurrentCountChange     = from.currentChanged;
     to.LastSubscriptionHandle = User.InstanceHandle.FromGID(from.instanceHandle);
     return(V_RESULT.OK);
 }
        internal static V_RESULT CopyOut(IntPtr fromPtr, IntPtr toPtr)
        {
            v_topicMatchInfo from = (v_topicMatchInfo)Marshal.PtrToStructure(fromPtr, type);

            GCHandle toGCHandle         = GCHandle.FromIntPtr(toPtr);
            PublicationMatchedStatus to = toGCHandle.Target as PublicationMatchedStatus;

            V_RESULT result = CopyOut(ref from, to);

            toGCHandle.Target = to;
            return(result);
        }