Lines Matching refs:content
30 std::string content; in ReadMetadata() local
31 if (!base::ReadFileToString(path, &content)) { in ReadMetadata()
38 if (content.size() < length_prefix_bytes) { in ReadMetadata()
39 return Error() << "Invalid metadata: size == " << content.size(); in ReadMetadata()
41 size = be32toh(*reinterpret_cast<uint32_t*>(content.data())); in ReadMetadata()
42 if (content.size() < length_prefix_bytes + size) { in ReadMetadata()
44 << content.size() - length_prefix_bytes << ")"; in ReadMetadata()
46 content = content.substr(length_prefix_bytes, size); in ReadMetadata()
50 if (!metadata.ParseFromString(content)) { in ReadMetadata()
58 std::string content; in WriteMetadata() local
59 if (!metadata.SerializeToString(&content)) { in WriteMetadata()
64 uint32_t size = htobe32(static_cast<uint32_t>(content.size())); in WriteMetadata()
68 out << content; in WriteMetadata()