internal static void CopyOut(v_topicDataPolicyI_s from, ref TopicDataQosPolicy to)
 {
     if (to == null)
     {
         to = new TopicDataQosPolicy();
     }
     SequenceOctetMarshaler.CopyOut(from.v._value, ref to.Value, from.v.size);
 }
        internal static int countErrors(TopicDataQosPolicy o)
        {
            int errorCount = 0;

            if (o.Value == null)
            {
                errorCount++;
            }
            return(errorCount);
        }
 internal static DDS.ReturnCode CopyIn(TopicDataQosPolicy from, ref v_topicDataPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         to.v.size = from.Value.Length;
         SequenceOctetMarshaler.CopyIn(from.Value, ref to.v._value);
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "TopicDataQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 internal static void CopyOut(IntPtr from, ref TopicDataQosPolicy to, int offset)
 {
 	if (to == null) to = new TopicDataQosPolicy();
     SequenceOctetMarshaler.CopyOut(from, ref to.Value, offset + offset_value);
 }
 internal void CopyOut(ref TopicDataQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
 internal static DDS.ReturnCode CopyIn(TopicDataQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null) {
         SequenceOctetMarshaler.CopyIn(from.Value, to, offset + offset_value);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.TopicDataQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "TopicDataQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
 internal DDS.ReturnCode CopyIn(TopicDataQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }