Apache.NMS.ActiveMQ.OpenWire.V6.PartialCommandMarshaller.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)
        {
            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;
        }