internal static V_RESULT CopyOut(IntPtr fromPtr, IntPtr toPtr) { v_inconsistentTopicInfo from = (v_inconsistentTopicInfo)Marshal.PtrToStructure(fromPtr, type); GCHandle toGCHandle = GCHandle.FromIntPtr(toPtr); InconsistentTopicStatus to = toGCHandle.Target as InconsistentTopicStatus; V_RESULT result = CopyOut(ref from, to); toGCHandle.Target = to; return(result); }
internal static V_RESULT CopyOut(ref v_inconsistentTopicInfo from, InconsistentTopicStatus to) { to.TotalCount = from.totalCount; to.TotalCountChange = from.totalChanged; return(V_RESULT.OK); }