Apache.NMS.ActiveMQ.OpenWire.V6.ConsumerControlMarshaller.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)
        {
            ConsumerControl info = (ConsumerControl)o;

            int rc = base.TightMarshal1(wireFormat, o, bs);
            rc += TightMarshalNestedObject1(wireFormat, (DataStructure)info.Destination, 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;
        }