Apache.NMS.ActiveMQ.Commands.ActiveMQBytesMessage.WriteInt64 C# (CSharp) Method

WriteInt64() public method

public WriteInt64 ( long value ) : void
value long
return void
        public void WriteInt64( long value )
        {
            InitializeWriting();
            try
            {
                dataOut.Write( value );
            }
            catch(Exception e)
            {
                throw NMSExceptionSupport.Create(e);
            }
        }

Usage Example

	    public void TestGetBodyLength() 
		{
	        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
	        int len = 10;

            for(int i = 0; i < len; i++)
			{
                msg.WriteInt64(5L);
            }

            msg.Reset();
            Assert.IsTrue(msg.BodyLength == (len * 8));
	    }
All Usage Examples Of Apache.NMS.ActiveMQ.Commands.ActiveMQBytesMessage::WriteInt64