当前位置: 首页>>代码示例>>C#>>正文


C# BooleanStream.WriteBoolean方法代码示例

本文整理汇总了C#中BooleanStream.WriteBoolean方法的典型用法代码示例。如果您正苦于以下问题:C# BooleanStream.WriteBoolean方法的具体用法?C# BooleanStream.WriteBoolean怎么用?C# BooleanStream.WriteBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BooleanStream的用法示例。


在下文中一共展示了BooleanStream.WriteBoolean方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            XATransactionId info = (XATransactionId)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.GlobalTransactionId!=null);
            rc += info.GlobalTransactionId==null ? 0 : info.GlobalTransactionId.Length+4;
            bs.WriteBoolean(info.BranchQualifier!=null);
            rc += info.BranchQualifier==null ? 0 : info.BranchQualifier.Length+4;

            return rc + 4;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:15,代码来源:XATransactionIdMarshaller.cs

示例2: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ConsumerControl info = (ConsumerControl)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.Close);
        rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ConsumerId, bs);
            bs.WriteBoolean(info.Flush);
            bs.WriteBoolean(info.Start);
            bs.WriteBoolean(info.Stop);

            return rc + 4;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:16,代码来源:ConsumerControlMarshaller.cs

示例3: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ConnectionControl info = (ConnectionControl)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.Close);
            bs.WriteBoolean(info.Exit);
            bs.WriteBoolean(info.FaultTolerant);
            bs.WriteBoolean(info.Resume);
            bs.WriteBoolean(info.Suspend);

            return rc + 0;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:16,代码来源:ConnectionControlMarshaller.cs

示例4: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            BaseCommand info = (BaseCommand)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.ResponseRequired);

            return rc + 4;
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:12,代码来源:BaseCommandMarshaller.cs

示例5: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            JournalTransaction info = (JournalTransaction)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
        rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.TransactionId, bs);
            bs.WriteBoolean(info.WasPrepared);

            return rc + 1;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:13,代码来源:JournalTransactionMarshaller.cs

示例6: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            PartialCommand info = (PartialCommand)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.Data!=null);
            rc += info.Data==null ? 0 : info.Data.Length+4;

            return rc + 4;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:13,代码来源:PartialCommandMarshaller.cs

示例7: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ActiveMQBlobMessage info = (ActiveMQBlobMessage)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalString1(info.RemoteBlobUrl, bs);
            rc += TightMarshalString1(info.MimeType, bs);
            bs.WriteBoolean(info.DeletedByBroker);

            return rc + 0;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:14,代码来源:ActiveMQBlobMessageMarshaller.cs

示例8: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            WireFormatInfo info = (WireFormatInfo)o;

            info.BeforeMarshall(wireFormat);

            int rc = base.TightMarshal1(wireFormat, o, bs);
            bs.WriteBoolean(info.MarshalledProperties!=null);
            rc += info.MarshalledProperties==null ? 0 : info.MarshalledProperties.Length+4;

            return rc + 12;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:15,代码来源:WireFormatInfoMarshaller.cs

示例9: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            BrokerInfo info = (BrokerInfo)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.BrokerId, bs);
            rc += TightMarshalString1(info.BrokerURL, bs);
            rc += TightMarshalObjectArray1(wireFormat, info.PeerBrokerInfos, bs);
            rc += TightMarshalString1(info.BrokerName, bs);
            bs.WriteBoolean(info.SlaveBroker);
            bs.WriteBoolean(info.MasterBroker);
            bs.WriteBoolean(info.FaultTolerantConfiguration);
            bs.WriteBoolean(info.DuplexConnection);
            bs.WriteBoolean(info.NetworkConnection);
            rc += TightMarshalLong1(wireFormat, info.ConnectionId, bs);
            rc += TightMarshalString1(info.BrokerUploadUrl, bs);
            rc += TightMarshalString1(info.NetworkProperties, bs);

            return rc + 0;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:23,代码来源:BrokerInfoMarshaller.cs

示例10: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            Message info = (Message)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ProducerId, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.TransactionId, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.OriginalDestination, bs);
            rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.MessageId, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.OriginalTransactionId, bs);
            rc += TightMarshalString1(info.GroupID, bs);
            rc += TightMarshalString1(info.CorrelationId, bs);
            bs.WriteBoolean(info.Persistent);
            rc += TightMarshalLong1(wireFormat, info.Expiration, bs);
            rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.ReplyTo, bs);
            rc += TightMarshalLong1(wireFormat, info.Timestamp, bs);
            rc += TightMarshalString1(info.Type, bs);
            bs.WriteBoolean(info.Content!=null);
            rc += info.Content==null ? 0 : info.Content.Length+4;
            bs.WriteBoolean(info.MarshalledProperties!=null);
            rc += info.MarshalledProperties==null ? 0 : info.MarshalledProperties.Length+4;
            rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.DataStructure, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.TargetConsumerId, bs);
            bs.WriteBoolean(info.Compressed);
            rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs);
            rc += TightMarshalLong1(wireFormat, info.Arrival, bs);
            rc += TightMarshalString1(info.UserID, bs);
            bs.WriteBoolean(info.RecievedByDFBridge);
            bs.WriteBoolean(info.Droppable);
            rc += TightMarshalObjectArray1(wireFormat, info.Cluster, bs);
            rc += TightMarshalLong1(wireFormat, info.BrokerInTime, bs);
            rc += TightMarshalLong1(wireFormat, info.BrokerOutTime, bs);

            return rc + 9;
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:39,代码来源:MessageMarshaller.cs

示例11: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ProducerInfo info = (ProducerInfo)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ProducerId, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs);
            rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs);
            bs.WriteBoolean(info.DispatchAsync);

            return rc + 4;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:15,代码来源:ProducerInfoMarshaller.cs

示例12: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ConsumerInfo info = (ConsumerInfo)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConsumerId, bs);
            bs.WriteBoolean(info.Browser);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.Destination, bs);
            bs.WriteBoolean(info.DispatchAsync);
            rc += TightMarshalString1(info.Selector, bs);
            rc += TightMarshalString1(info.SubscriptionName, bs);
            bs.WriteBoolean(info.NoLocal);
            bs.WriteBoolean(info.Exclusive);
            bs.WriteBoolean(info.Retroactive);
            rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs);
        rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.AdditionalPredicate, bs);
            bs.WriteBoolean(info.NetworkSubscription);
            bs.WriteBoolean(info.OptimizedAcknowledge);
            bs.WriteBoolean(info.NoRangeAcks);
            rc += TightMarshalObjectArray1(wireFormat, info.NetworkConsumerPath, bs);

            return rc + 9;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:26,代码来源:ConsumerInfoMarshaller.cs

示例13: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {
            ConnectionInfo info = (ConnectionInfo)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalCachedObject1(wireFormat, (DataStructure)info.ConnectionId, bs);
            rc += TightMarshalString1(info.ClientId, bs);
            rc += TightMarshalString1(info.Password, bs);
            rc += TightMarshalString1(info.UserName, bs);
            rc += TightMarshalObjectArray1(wireFormat, info.BrokerPath, bs);
            bs.WriteBoolean(info.BrokerMasterConnector);
            bs.WriteBoolean(info.Manageable);
            bs.WriteBoolean(info.ClientMaster);

            return rc + 0;
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:19,代码来源:ConnectionInfoMarshaller.cs


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