本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}