code: @Override
      public short getShort(final int index) {
          final int i = this.lowerBoundary + index;
          checkIndex(i);
          checkIndex(i + 1);
  
          // big endian
          return (short) (this.buffer[i] << 8 | this.buffer[i + 1] & 0xFF);
  
          // little endian
          // return (short) (this.buffer[i] & 0xFF | this.buffer[i + 1] << 8);
      }
docs: {@inheritDoc}