internal static void CopyOut(v_livelinessPolicyI_s from, ref LivelinessQosPolicy to)
        {
            if (to == null)
            {
                to = new LivelinessQosPolicy();
            }

            to.Kind = (LivelinessQosPolicyKind)from.v.kind;
            DurationMarshaler.CopyOut(from.v.lease_duration, ref to.LeaseDuration);
        }
 internal static DDS.ReturnCode CopyIn(LivelinessQosPolicy from, ref v_livelinessPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         to.v.kind = (V_LIVELINESSKIND)from.Kind;
         result    = DurationMarshaler.CopyIn(from.LeaseDuration, ref to.v.lease_duration);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "LivelinessQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 internal static void CleanupIn(ref v_livelinessPolicyI_s to)
 {
     DurationMarshaler.CleanupIn(ref to.v.lease_duration);
 }