• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# InstanceHandle类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中InstanceHandle的典型用法代码示例。如果您正苦于以下问题:C# InstanceHandle类的具体用法?C# InstanceHandle怎么用?C# InstanceHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



InstanceHandle类属于命名空间,在下文中一共展示了InstanceHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: read_next_instance_w_condition

 public static extern ReturnCode read_next_instance_w_condition(
     IntPtr _this,
     IntPtr data_values,
     IntPtr info_seq,
     int max_samples,
     InstanceHandle a_handle,
     IntPtr a_condition);
开发者ID:xrl,项目名称:opensplice,代码行数:7,代码来源:BuiltinTopicData.cs


示例2: NewChange

        internal CacheChange NewChange(ChangeKind kind, Data data, InstanceHandle instance)
        {
            var change = new CacheChange()
            {
                WriterGuid = Id,
                SequenceNumber = SequenceNumber.Increment(),

                Kind = kind,
                InstanceHandle = instance,

                Data = data
            };

            var message = new Message()
            {
                Header = new Header()
                {
                    Protocol = ProtocolId.ProtocolRTPS,
                    Version = ProtocolVersion.v22,
                    Vendor = VendorId.Unknown,
                    GuidPrefix = new GuidPrefix()
                }
            };

            message.AddSubMessage(new DataSubMessage(data));
            message.AddSubMessage(new HeartbeatSubMessage());

            Channel.Send(message);

            return change;
        }
开发者ID:MachinaAurum,项目名称:MachinaAurum.RTPS,代码行数:31,代码来源:Writer.cs


示例3: read_next_instance

 public static extern ReturnCode read_next_instance(
     IntPtr _this,
     IntPtr data_values,
     IntPtr info_seq,
     int max_samples,
     InstanceHandle a_handle,
     SampleStateKind sample_states,
     ViewStateKind view_states,
     InstanceStateKind instance_states);
开发者ID:xrl,项目名称:opensplice,代码行数:9,代码来源:BuiltinTopicData.cs


示例4: GetKeyValue

 public static ReturnCode GetKeyValue(
         DataReader reader, 
         ref object key, 
         InstanceHandle instanceHandle)
 {
     GCHandle tmpGCHandleData = GCHandle.Alloc(key, GCHandleType.Normal);
     ReturnCode result =  Gapi.FooDataReader.get_key_value(
             reader.GapiPeer,
             GCHandle.ToIntPtr(tmpGCHandleData),
             instanceHandle);
     tmpGCHandleData.Free();
     return result;
 }
开发者ID:xrl,项目名称:opensplice_dds,代码行数:13,代码来源:FooDataReader.cs


示例5: Dispose

        public static ReturnCode Dispose(
                DataWriter writer, 
                object instanceData, 
                InstanceHandle instanceHandle)
        {
            GCHandle tmpGCHandle = GCHandle.Alloc(instanceData, GCHandleType.Normal);
            ReturnCode result = Gapi.FooDataWriter.dispose(
                    writer.GapiPeer,
                    GCHandle.ToIntPtr(tmpGCHandle),
                    instanceHandle);
            tmpGCHandle.Free();

            return result;
        }
开发者ID:xrl,项目名称:opensplice_dds,代码行数:14,代码来源:FooDataWriter.cs


示例6: DisposeWithTimestamp

        public static ReturnCode DisposeWithTimestamp(
                DataWriter writer, 
                object instanceData,
                InstanceHandle instanceHandle, 
                Time sourceTimestamp)
        {
            GCHandle tmpGCHandle = GCHandle.Alloc(instanceData, GCHandleType.Normal);
            ReturnCode result = Gapi.FooDataWriter.dispose_w_timestamp(
                    writer.GapiPeer,
                    GCHandle.ToIntPtr(tmpGCHandle),
                    instanceHandle,
                    ref sourceTimestamp);
            tmpGCHandle.Free();

            return result;
        }
开发者ID:xrl,项目名称:opensplice_dds,代码行数:16,代码来源:FooDataWriter.cs


示例7: AddReference

 public void AddReference(InstanceHandle handle)
 {
     if (referenceList.ContainsKey(handle.Instance))
         return;
     referenceList.Add(handle.Instance, handle);
     handle.MarkReferredBy(this);
 }
开发者ID:netcasewqs,项目名称:nlite,代码行数:7,代码来源:IDependency.cs


示例8: RemoveReference

 public void RemoveReference(InstanceHandle handle)
 {
     if (referenceList.ContainsKey(handle.Instance))
     {
         referenceList.Remove(handle.Instance);
         handle.UnmarkReferredBy(this);
     }
 }
开发者ID:netcasewqs,项目名称:nlite,代码行数:8,代码来源:IDependency.cs


示例9: Cancel

 internal void Cancel()
 {
     Fx.Assert(InstanceHandle != null, "InstanceHandleReference already cancelled.");
     InstanceHandle = null;
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:5,代码来源:InstanceHandleReference.cs


示例10: RemoveHandle

 private void RemoveHandle(InstanceHandle handle)
 {
     Items.Remove(handle);
     foreach (var item in handle.referredList.Values.ToArray())
         item.RemoveReference(handle);
     foreach (var item in handle.referenceList.Values.ToArray())
         item.UnmarkReferredBy(handle);
 }
开发者ID:netcasewqs,项目名称:nlite,代码行数:8,代码来源:IDependency.cs


示例11: contains_entity

 public static extern byte contains_entity(
     IntPtr _this,
     InstanceHandle a_handle);
开发者ID:shizhexu,项目名称:opensplice,代码行数:3,代码来源:DomainParticipant.cs


示例12: InstanceHandleReference

 internal InstanceHandleReference(InstanceHandle instanceHandle)
 {
     Fx.Assert(instanceHandle != null, "Null instanceHandle provided to InstanceHandleReference.");
     InstanceHandle = instanceHandle;
 }
开发者ID:krytht,项目名称:DotNetReferenceSource,代码行数:5,代码来源:InstanceHandleReference.cs


示例13: TakeNextInstanceWithCondition

        public static ReturnCode TakeNextInstanceWithCondition(
                DataReader reader, 
                ref object[] data, 
                ref SampleInfo[] sampleInfos,
                int maxSamples, 
                InstanceHandle instanceHandle, 
                IReadCondition condition)
        {
            ReturnCode result = ReturnCode.Ok;
            using (DataReaderMarshaler marshaler = 
                    new DataReaderMarshaler(data, sampleInfos, ref maxSamples, ref result))
            {
                if (result == ReturnCode.Ok)
                {
                    result = Gapi.FooDataReader.take_next_instance_w_condition(
                        reader.GapiPeer,
                        marshaler.dataValuesPtr,
                        marshaler.sampleInfosPtr,
                        maxSamples,
                        instanceHandle,
                        ((ReadCondition)condition).GapiPeer);

                    marshaler.CopyOut(ref data, ref sampleInfos);
                }
            }
            return result;
        }
开发者ID:shizhexu,项目名称:opensplice,代码行数:27,代码来源:FooDataReader.cs


示例14: get_discovered_participant_data

 public static extern ReturnCode get_discovered_participant_data(
     IntPtr _this,
     IntPtr participant_data,
     InstanceHandle handle);
开发者ID:xrl,项目名称:opensplice_dds,代码行数:4,代码来源:DomainParticipant.cs


示例15: get_matched_publication_data

 public static extern ReturnCode get_matched_publication_data(
     IntPtr _this,
     IntPtr publication_data,
     InstanceHandle publication_handle);
开发者ID:xrl,项目名称:opensplice,代码行数:4,代码来源:DataReader.cs


示例16: MarkReferredBy

 public void MarkReferredBy(InstanceHandle handle)
 {
     referredList.Add(handle.Instance, handle);
 }
开发者ID:netcasewqs,项目名称:nlite,代码行数:4,代码来源:IDependency.cs


示例17: get_discovered_topic_data

 public static extern ReturnCode get_discovered_topic_data(
     IntPtr _this,
     IntPtr topic_data,
     InstanceHandle handle);
开发者ID:xrl,项目名称:opensplice_dds,代码行数:4,代码来源:DomainParticipant.cs


示例18: Write

 public static void Write(IntPtr to, int offset, InstanceHandle from)
 {
     Marshal.WriteInt64(to, offset, from);
 }
开发者ID:xrl,项目名称:opensplice,代码行数:4,代码来源:BaseMarshaler.cs


示例19: get_matched_subscription_data

 public static extern ReturnCode get_matched_subscription_data(
     IntPtr _this,
     IntPtr subscription_data,
     InstanceHandle subscription_handle);
开发者ID:xrl,项目名称:opensplice,代码行数:4,代码来源:DataWriter.cs


示例20: UnmarkReferredBy

 public void UnmarkReferredBy(InstanceHandle handle)
 {
     referredList.Remove(handle.Instance);
 }
开发者ID:netcasewqs,项目名称:nlite,代码行数:4,代码来源:IDependency.cs



注:本文中的InstanceHandle类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# InstanceProducer类代码示例发布时间:2022-05-24
下一篇:
C# InstanceContext类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap