code: static int skipByteSubString(byte[] array, int index, int length, 
                                             byte skipend)
      {
          int result;
          byte b;
          
          for (result = 0; result < length; result ++)
          {
              b = array[index + result];
              if (b == skipend)
              {
                  result ++;
                  break;
              }
          }
          
          return result;
      }
docs: skip substrings from an array of characters, where each character is a set
  of 2 bytes. substring is a set of non-zero bytes starting from argument
  start to the byte of the argument value. skips up to a max number of
  characters
  @param array byte array to parse
  @param index to start substrings in byte count
  @param length the max number of bytes to skip
  @param skipend value of byte to skip to
  @return the number of bytes skipped