code: public int indexOf(byte[] hostData, int start, int length) {
          int pos = start;
          while (length - pos >= getSignatureLen()) {
              if (match(hostData, pos, length)) {
                  return pos;
              }
              pos++;
          }
          return -1;
      }
docs: Lookup for the signature of a Cobol type.
  <p/>
  Attempts at finding the type one byte at a time delegating the matching
  to specialized classes.
  
  @param hostData the incoming host data where the matching type might
  appear
  @param start where to start looking in the incoming host data
  @param length where to stop looking in the incoming host data
  @return the position of the match or -1 if there is no match