MCPcopy Create free account
hub / github.com/comaps/comaps / ReadFile

Function ReadFile

libs/coding/internal/file_data.cpp:331–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331std::vector<uint8_t> ReadFile(std::string const & filePath)
332{
333 FileData file(filePath, FileData::Op::READ);
334 uint64_t const sz = file.Size();
335 std::vector<uint8_t> contents(sz);
336 file.Read(0, contents.data(), sz);
337 return contents;
338}
339
340} // namespace base

Callers

nothing calls this directly

Calls 3

SizeMethod · 0.45
ReadMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected