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

Size() public method

public Size ( ) : int
return int
        public virtual int Size()
        {
            int size = DEFAULT_MINIMUM_MESSAGE_SIZE;

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

            return size;
        }