internal static void CopyOut(v_ownershipPolicyI_s from, ref OwnershipQosPolicy to) { if (to == null) { to = new OwnershipQosPolicy(); } to.Kind = (OwnershipQosPolicyKind)from.v.kind; }
internal static int countErrors(OwnershipQosPolicy o) { int errorCount = 0; if (o.Kind > OwnershipQosPolicyKind.ExclusiveOwnershipQos) { errorCount++; } return(errorCount); }
internal static DDS.ReturnCode CopyIn(OwnershipQosPolicy from, ref v_ownershipPolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { to.v.kind = (V_OWNERSHIPKIND)from.Kind; } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "OwnershipQosPolicy attribute may not be a null pointer."); } return(result); }
internal static void CopyOut(IntPtr from, ref OwnershipQosPolicy to, int offset) { if (to == null) to = new OwnershipQosPolicy(); // Get scheduling_class field to.Kind = (OwnershipQosPolicyKind) BaseMarshaler.ReadInt32(from, offset + offset_kind); }
internal void CopyOut(ref OwnershipQosPolicy to) { CopyOut(GapiPtr, ref to, 0); }
internal static DDS.ReturnCode CopyIn(OwnershipQosPolicy from, IntPtr to, int offset) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null) { BaseMarshaler.Write(to, offset + offset_kind, (int)from.Kind); } else { result = DDS.ReturnCode.BadParameter; DDS.OpenSplice.OS.Report( DDS.OpenSplice.ReportType.OS_ERROR, "DDS.OpenSplice.CustomMarshalers.OwnershipQosPolicyMarshaler.CopyIn", "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs", DDS.ErrorCode.InvalidValue, "OwnershipQosPolicy attribute may not be a null pointer."); } return result; }
internal DDS.ReturnCode CopyIn(OwnershipQosPolicy from) { cleanupRequired = true; return CopyIn(from, GapiPtr, 0); }
public ModifiableOwnershipQosPolicy CopyFrom(OwnershipQosPolicy other) { return new ModifiableOwnershipQosPolicyImpl(other); }
public ModifiableOwnershipQosPolicyImpl(OwnershipQosPolicy qos) : base(qos.GetKind(),qos.GetBootstrap()) { }