internal static int countErrors(LifespanQosPolicy o) { int errorCount = 0; errorCount += countErrors(o.Duration); return(errorCount); }
internal static void CopyOut(v_lifespanPolicyI_s from, ref LifespanQosPolicy to) { if (to == null) { to = new LifespanQosPolicy(); } DurationMarshaler.CopyOut(from.v.duration, ref to.Duration); }
internal static DDS.ReturnCode CopyIn(LifespanQosPolicy from, ref v_lifespanPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { result = DurationMarshaler.CopyIn(from.Duration, ref to.v.duration); } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "LifespanQosPolicy attribute may not be a null pointer."); } return(result); }
internal static void CopyOut(IntPtr from, ref LifespanQosPolicy to, int offset) { if (to == null) to = new LifespanQosPolicy(); to.Duration = BaseMarshaler.ReadDuration(from, offset + offset_duration); }
internal void CopyOut(ref LifespanQosPolicy to) { CopyOut(GapiPtr, ref to, 0); }
internal static DDS.ReturnCode CopyIn(LifespanQosPolicy from, IntPtr to, int offset) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { BaseMarshaler.Write(to, offset + offset_duration, from.Duration); } else { result = DDS.ReturnCode.BadParameter; DDS.OpenSplice.OS.Report( DDS.OpenSplice.ReportType.OS_ERROR, "DDS.OpenSplice.CustomMarshalers.LifespanQosPolicyMarshaler.CopyIn", "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs", DDS.ErrorCode.InvalidValue, "LifespanQosPolicy attribute may not be a null pointer."); } return result; }
internal DDS.ReturnCode CopyIn(LifespanQosPolicy from) { cleanupRequired = true; return CopyIn(from, GapiPtr, 0); }
public ModifiableLifespanQosPolicy CopyFrom(LifespanQosPolicy other) { return new ModifiableLifespanQosPolicyImpl(other); }
public ModifiableLifespanQosPolicyImpl(LifespanQosPolicy qos) : base(qos.GetDuration(),qos.GetBootstrap()) { }