I have a buffer contains Two bytes lets imagine the buffer is: org.jboss.netty.buffer.ChannelBuffer
buffer[28,29,30,31,32] to
read the two fisrt bytes in java we use this function :
buffer.readShort()
but what i want to do is to read the buffer from 29 to 28(i want to reverse the order of the bytes).