GetDataWriterQos( ref DataWriterQos datawriterQos, string id) { NamedDataWriterQos dwQos = new NamedDataWriterQos(); GCHandle qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal); ReturnCode result = OpenSplice.Common.QosProvider.GetDataWriterQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle)); datawriterQos = dwQos.DatawriterQos; qosHandle.Free(); return(result); }
GetDataWriterQos( ref DataWriterQos datawriterQos, string id) { ReportStack.Start(); NamedDataWriterQos dwQos = new NamedDataWriterQos(); GCHandle qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal); ReturnCode result = qpResultToReturnCode( OpenSplice.Common.QosProvider.GetDataWriterQos(cmnQpPtr, id, GCHandle.ToIntPtr(qosHandle))); if (result == ReturnCode.Ok) { datawriterQos = dwQos.DatawriterQos; } else { ReportStack.Report(result, "Could not copy datawriterQos."); } qosHandle.Free(); ReportStack.Flush(null, result != ReturnCode.Ok); return(result); }
GetDataWriterQos ( ref DataWriterQos datawriterQos, string id) { NamedDataWriterQos dwQos = new NamedDataWriterQos(); GCHandle qosHandle = GCHandle.Alloc(dwQos, GCHandleType.Normal); ReturnCode result = OpenSplice.Common.QosProvider.GetDataWriterQos(GapiPeer, id, GCHandle.ToIntPtr(qosHandle)); datawriterQos = dwQos.DatawriterQos; qosHandle.Free(); return result; }