code: static public int byteIndexOf(byte[] bytes, byte target, int start_index) {
  
          int rc = -1; // simulate String.indexOf rc
          // stop when we are out of data or hit the target byte
          for (int index = start_index; index < bytes.length; index++) {
              if (target == bytes[index]) {
                  rc = index;
                  break;
              }
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "byteIndexOf returning [" + rc + "]");
          }
          return rc;
      }
docs: Helper function for byte[]s to simulate the String.indexOf() method.
  
  @param bytes
  @param target
  @param start_index
  @return int (-1 if not found)