Apache.NMS.ActiveMQ.OpenWire.V6.MessageDispatchMarshaller.TightMarshal2 C# (CSharp) Method

TightMarshal2() public method

public TightMarshal2 ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o Object
dataOut System.IO.BinaryWriter
bs BooleanStream
return void
        public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs)
        {
            base.TightMarshal2(wireFormat, o, dataOut, bs);

            MessageDispatch info = (MessageDispatch)o;
            TightMarshalCachedObject2(wireFormat, (DataStructure)info.ConsumerId, dataOut, bs);
            TightMarshalCachedObject2(wireFormat, (DataStructure)info.Destination, dataOut, bs);
            TightMarshalNestedObject2(wireFormat, (DataStructure)info.Message, dataOut, bs);
            dataOut.Write(info.RedeliveryCounter);
        }