Lines Matching defs:buf
154 char buf[kMaxRecordSize + 1];
165 if (!fgets(buf, sizeof(buf), f) || fread(&version, 4, 1, f) < 1)
171 if (!valid_header || strcmp(buf, kFileSignature) != 0 ||
200 if (size > kMaxRecordSize || fread(buf, size, 1, f) < 1) {
207 int* deps_data = reinterpret_cast<int*>(buf);
229 if (buf[path_size - 1] == '\0') --path_size;
230 if (buf[path_size - 1] == '\0') --path_size;
231 if (buf[path_size - 1] == '\0') --path_size;
232 StringPiece subpath(buf, path_size);
244 unsigned checksum = *reinterpret_cast<unsigned*>(buf + size - 4);