首页 > 代码库 > Test

Test

  while (msg == NULL && GetVarint32(&input, &tag)) {    switch (tag) {      case kComparator:        if (GetLengthPrefixedSlice(&input, &str)) {          comparator_ = str.ToString();          has_comparator_ = true;        } else {          msg = "comparator name";        }        break;