MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / readFileIntoString

Function readFileIntoString

Tools/SC-package.h:118–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118[[nodiscard]] inline Result readFileIntoString(StringSpan path, String& output)
119{
120 FileDescriptor file;
121 SC_TRY(file.open(path, FileOpen::Read));
122 return file.readUntilEOF(output);
123}
124
125[[nodiscard]] inline Result packageMetadataMatches(const Download& download, const Package& package, bool& matches)
126{

Callers 2

SupportToolsTestMethod · 0.85
packageMetadataMatchesFunction · 0.85

Calls 2

readUntilEOFMethod · 0.80
openMethod · 0.45

Tested by 1

SupportToolsTestMethod · 0.68