internal static void CopyOut(v_presentationPolicyI_s from, ref PresentationQosPolicy to)
 {
     if (to == null)
     {
         to = new PresentationQosPolicy();
     }
     to.AccessScope    = (PresentationQosPolicyAccessScopeKind)from.v.access_scope;
     to.CoherentAccess = from.v.coherent_access;
     to.OrderedAccess  = from.v.ordered_access;
 }
        internal static int countErrors(PresentationQosPolicy o)
        {
            int errorCount = 0;

            if (o.AccessScope > PresentationQosPolicyAccessScopeKind.GroupPresentationQos)
            {
                errorCount++;
            }
            return(errorCount);
        }
 internal static DDS.ReturnCode CopyIn(PresentationQosPolicy from, ref v_presentationPolicyI_s to)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null)
     {
         to.v.access_scope    = (V_PRESENTATIONKIND)from.AccessScope;
         to.v.coherent_access = from.CoherentAccess;
         to.v.ordered_access  = from.OrderedAccess;
     }
     else
     {
         result = DDS.ReturnCode.BadParameter;
         ReportStack.Report(result, "PresentationQosPolicy attribute may not be a null pointer.");
     }
     return(result);
 }
 internal static void CopyOut(IntPtr from, ref PresentationQosPolicy to, int offset)
 {
 	if (to == null) to = new PresentationQosPolicy();
     to.AccessScope = (PresentationQosPolicyAccessScopeKind)BaseMarshaler.ReadInt32(from, offset + offset_access_scope);
     to.CoherentAccess = BaseMarshaler.ReadBoolean(from, offset + offset_coherent_access);
     to.OrderedAccess = BaseMarshaler.ReadBoolean(from, offset + offset_ordered_access);
 }
 internal void CopyOut(ref PresentationQosPolicy to)
 {
     CopyOut(GapiPtr, ref to, 0);
 }
 internal static DDS.ReturnCode CopyIn(PresentationQosPolicy from, IntPtr to, int offset)
 {
     DDS.ReturnCode result = DDS.ReturnCode.Ok;
     if (from != null) {
         BaseMarshaler.Write(to, offset + offset_access_scope, (int)from.AccessScope);
         BaseMarshaler.Write(to, offset + offset_coherent_access, from.CoherentAccess);
         BaseMarshaler.Write(to, offset + offset_ordered_access, from.OrderedAccess);
     } else {
         result = DDS.ReturnCode.BadParameter;
         DDS.OpenSplice.OS.Report(
                 DDS.OpenSplice.ReportType.OS_ERROR,
                 "DDS.OpenSplice.CustomMarshalers.PresentationQosPolicyMarshaler.CopyIn",
                 "DDS/OpenSplice/CustomMarshalers/QosContainedMarshalers.cs",
                 DDS.ErrorCode.InvalidValue,
                 "PresentationQosPolicy attribute may not be a null pointer.");
     }
     return result; 
 }
 internal DDS.ReturnCode CopyIn(PresentationQosPolicy from)
 {
     cleanupRequired = true;
     return CopyIn(from, GapiPtr, 0);
 }