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

WriteInt16() public method

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

Usage Example

Exemplo n.º 1
0
	    public void TestReadShort() {
	        ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
            msg.WriteInt16((short) 3000);
            msg.Reset();
            Assert.IsTrue(msg.ReadInt16() == 3000);
	    }
All Usage Examples Of Apache.NMS.ActiveMQ.Commands.ActiveMQBytesMessage::WriteInt16