Apache.NMS.ActiveMQ.Commands.ActiveMQTextMessage.Size C# (CSharp) Method

Size() public method

public Size ( ) : int
return int
        public override int Size()
        {
            if(this.Content == null && text != null)
            {
                int size = DEFAULT_MINIMUM_MESSAGE_SIZE;

                if(MarshalledProperties != null)
                {
                    size += MarshalledProperties.Length;
                }

                return (size += this.text.Length * 2);
            }

            return base.Size();
        }