Apache.NMS.ActiveMQ.OpenWire.V6.ConnectionControlMarshaller.TightMarshal1 C# (CSharp) Method

TightMarshal1() public method

public TightMarshal1 ( OpenWireFormat wireFormat, Object o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o Object
bs BooleanStream
return int
        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);
            rc += TightMarshalString1(info.ConnectedBrokers, bs);
            rc += TightMarshalString1(info.ReconnectTo, bs);
            bs.WriteBoolean(info.RebalanceConnection);

            return rc + 0;
        }