/// <summary> /// Allows access to the <see cref="OfferedIncompatibleQosStatus" /> communication status. /// </summary> /// <param name="status">The <see cref="OfferedIncompatibleQosStatus" /> to be filled up.</param> /// <returns>The <see cref="ReturnCode" /> that indicates the operation result.</returns> public ReturnCode GetOfferedIncompatibleQosStatus(ref OfferedIncompatibleQosStatus status) { OfferedIncompatibleQosStatusWrapper s = default; ReturnCode ret = UnsafeNativeMethods.GetOfferedIncompatibleQosStatus(_native, ref s); status.FromNative(s); return(ret); }
internal void FromNative(OfferedIncompatibleQosStatusWrapper wrapper) { IList <QosPolicyCount> list = new List <QosPolicyCount>(); if (wrapper.Policies != IntPtr.Zero) { wrapper.Policies.PtrToSequence(ref list); } TotalCount = wrapper.TotalCount; TotalCountChange = wrapper.TotalCountChange; LastPolicyId = wrapper.LastPolicyId; Policies = list; }
private void OnOfferedIncompatibleQosHandler(IntPtr writer, ref OfferedIncompatibleQosStatusWrapper status) { Entity entity = EntityManager.Instance.Find(writer); DataWriter dataWriter = null; if (entity != null) { dataWriter = entity as DataWriter; } OfferedIncompatibleQosStatus ret = default; ret.FromNative(status); OnOfferedIncompatibleQos(dataWriter, ret); }
public static extern ReturnCode GetOfferedIncompatibleQosStatus(IntPtr dw, [MarshalAs(UnmanagedType.Struct), In, Out] ref OfferedIncompatibleQosStatusWrapper status);