internal static void CopyOut(v_readerLifespanPolicyI_s from, ref ReaderLifespanQosPolicy to) { if (to == null) { to = new ReaderLifespanQosPolicy(); } to.UseLifespan = from.v.used; DurationMarshaler.CopyOut(from.v.duration, ref to.Duration); }
internal static DDS.ReturnCode CopyIn(ReaderLifespanQosPolicy from, ref v_readerLifespanPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.used = from.UseLifespan; result = DurationMarshaler.CopyIn(from.Duration, ref to.v.duration); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "ReaderLifespanQosPolicy attribute may not be a null pointer."); } return(result); }
internal static void CleanupIn(ref v_readerLifespanPolicyI_s to) { DurationMarshaler.CleanupIn(ref to.v.duration); }