MCPcopy Create free account
hub / github.com/ByConity/ByConity / writeListFile

Function writeListFile

src/Access/DiskAccessStorage.cpp:298–308  ·  view source on GitHub ↗

Writes a map of name of access entity to UUID for access entities of some type to a file.

Source from the content-addressed store, hash-verified

296
297 /// Writes a map of name of access entity to UUID for access entities of some type to a file.
298 void writeListFile(const String & file_path, const std::vector<std::pair<UUID, std::string_view>> & id_name_pairs)
299 {
300 WriteBufferFromFile out(file_path);
301 writeVarUInt(id_name_pairs.size(), out);
302 for (const auto & [id, name] : id_name_pairs)
303 {
304 writeStringBinary(name, out);
305 writeUUIDText(id, out);
306 }
307 out.close();
308 }
309
310
311 /// Calculates the path for storing a map of name of access entity to UUID for access entities of some type.

Callers 1

writeListsMethod · 0.85

Calls 5

writeVarUIntFunction · 0.85
writeStringBinaryFunction · 0.85
writeUUIDTextFunction · 0.85
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected