An {@link InputStream} which reads data from a {@link ByteBuf}.
A read operation against this stream will occur at the {@code readerIndex}of its underlying buffer and the {@code readerIndex} will increase duringthe read operation. Please note that it only reads up to the number of readable bytes determined at the moment of construction. Therefore, updating {@link ByteBuf#writerIndex()} will not affect the returnvalue of {@link #available()}.
This stream implements {@link DataInput} for your convenience.The endianness of the stream is not always big endian but depends on the endianness of the underlying buffer.
@see ByteBufOutputStream