code: @SuppressWarnings("fallthrough")
      private boolean findSection(int offset, Position pos)
      {
          int i = offset, len = rawBytes.length;
          int last = offset;
          int next;
          boolean allBlank = true;
  
          pos.endOfFirstLine = -1;
  
          while (i < len) {
              byte b = rawBytes[i];
              switch(b) {
              case '\r':
                  if (pos.endOfFirstLine == -1)
                      pos.endOfFirstLine = i-1;
                  if ((i < len) &&  (rawBytes[i+1] == '\n'))
                      i++;
                  /* fall through */
              case '\n':
                  if (pos.endOfFirstLine == -1)
                      pos.endOfFirstLine = i-1;
                  if (allBlank || (i == len-1)) {
                      if (i == len-1)
                          pos.endOfSection = i;
                      else
                          pos.endOfSection = last;
                      pos.startOfNext = i+1;
                      return true;
                  }
                  else {
                      // start of a new line
                      last = i;
                      allBlank = true;
                  }
                  break;
              default:
                  allBlank = false;
                  break;
              }
              i++;
          }
          return false;
      }
docs: find a section in the manifest.
  
  @param offset should point to the starting offset with in the
  raw bytes of the next section.
  
  @pos set by
  
  @returns false if end of bytes has been reached, otherwise returns
  true