code: int distanceTo(final byte byteValue, final int fromIndex) {
          assert 0 <= fromIndex && fromIndex < byteArray.length;
          int index = fromIndex;
          for (; index < byteArray.length; ++index) {
              if (byteValue == byteArray[index]) {
                  break;
              }
          }
          return index - fromIndex;
      }
docs: Returns the distance from {@code fromIndex} to the next occurrence of
  {@code byteValue}. If the byte at {@code fromIndex} is equal to {@code
  byteValue} zero is returned. If there are no matching bytes between
  {@code fromIndex} and the end of the buffer then the distance to the end
  of the buffer is returned.
  
  @param byteValue byte to search for.
  @param fromIndex the position in the buffer from which to start searching.
  @return the distance in bytes to the next byte with the given value or if
  none is found to the end of the buffer.