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(PartitionQosPolicy from, ref IntPtr to)
 {
     DDS.ReturnCode result;
     if (from != null)
     {
         result = SequenceStringMarshaler.CopyIn(from.Name, ref to);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "PartitionQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 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);
 }
 internal static void CleanupIn(ref v_userKeyPolicyI_s to)
 {
     SequenceStringMarshaler.CleanupIn(ref to.v.expression);
 }
 internal static void CleanupIn(ref IntPtr to)
 {
     SequenceStringMarshaler.CleanupIn(ref to);
 }