Apache.NMS.ActiveMQ.OpenWire.V6.ConnectionInfoMarshaller.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)
        {
            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);
            bs.WriteBoolean(info.FaultTolerant);
            bs.WriteBoolean(info.FailoverReconnect);

            return rc + 0;
        }