internal static void CopyOut(v_userKeyPolicyI_s from, ref SubscriptionKeyQosPolicy to)
 {
     if (to == null)
     {
         to = new SubscriptionKeyQosPolicy();
     }
     to.UseKeyList = from.v.enable;
     SequenceStringMarshaler.CopyOut(from.v.expression, ref to.KeyList);
 }
 internal static DDS.ReturnCode CopyIn(SubscriptionKeyQosPolicy from, ref v_userKeyPolicyI_s to)
 {
     DDS.ReturnCode result;
     if (from != null)
     {
         to.v.enable = from.UseKeyList;
         result      = SequenceStringMarshaler.CopyIn(from.KeyList, ref to.v.expression);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "SubscriptionKeyQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
Exemplo n.º 3
0
 internal static void CopyOut(IntPtr from, ref SubscriptionKeyQosPolicy to, int offset)
 {
 	if (to == null) to = new SubscriptionKeyQosPolicy();
     to.UseKeyList = BaseMarshaler.ReadBoolean(from, offset + offset_use_key_list);
     SequenceStringMarshaler.CopyOut(from, ref to.KeyList, offset + offset_key_list);
 }
Exemplo n.º 4
0
 internal void CopyOut(ref SubscriptionKeyQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
Exemplo n.º 5
0
 internal static DDS.ReturnCode CopyIn(SubscriptionKeyQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result;
     if (from != null) {
         BaseMarshaler.Write(to, offset + offset_use_key_list, from.UseKeyList);
         result = SequenceStringMarshaler.CopyIn(from.KeyList, to, offset + offset_key_list);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.SubscriptionKeyQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "SubscriptionKeyQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
Exemplo n.º 6
0
 internal DDS.ReturnCode CopyIn(SubscriptionKeyQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }