internal static void CleanupIn(ref v_sharePolicyI_s to) { if (to.v.name != IntPtr.Zero) { BaseMarshaler.ReleaseString(ref to.v.name); } }
internal static void CopyOut(v_sharePolicyI_s from, ref ShareQosPolicy to) { if (to == null) { to = new ShareQosPolicy(); } to.Name = BaseMarshaler.ReadString(from.v.name); to.Enable = from.v.enable; }
internal static DDS.ReturnCode CopyIn(ShareQosPolicy from, ref v_sharePolicyI_s to) { DDS.ReturnCode result = DDS.ReturnCode.Ok; if (from != null && (from.Enable == false || from.Name != null)) { BaseMarshaler.WriteString(ref to.v.name, from.Name); to.v.enable = from.Enable; } else { result = DDS.ReturnCode.BadParameter; ReportStack.Report(result, "ShareQosPolicy attribute may not contain a null pointer."); } return(result); }