static int writeBackwards(int b, int pos, char[] buf) {
      if (b < 10) {
        buf[pos] = HEX_DIGITS[b];
        return pos + 1;
      }
      int i = pos += b < 100 ? 2 : 3; // We write backwards from right to left.
      while (b != 0) {
        int digit = b % 10;
        buf[--i] = HEX_DIGITS[digit];
        b /= 10;
      }
      return pos;
    }
Like {@link #parseIp(String)} except this accepts a byte array.

@param ipBytes byte array whose ownership is exclusively transferred to this endpoint.
zipkin/src/main/java/zipkin2/Endpoint.java