MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeFormat

Method writeFormat

source/util/bfile.h:85–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84 template <class... Args>
85 U32 writeFormat(const char* format, Args&&... args) {
86 auto size = std::snprintf(nullptr, 0, format, std::forward<Args>(args)...);
87 BString msg(size + 1, '\0');
88 std::snprintf(msg.str(), size + 1, format, std::forward<Args>(args)...);
89 return write(msg);
90 }
91
92 bool write(U8 value);
93 bool write(S8 value);

Callers 2

logMethod · 0.80
logBlockFunction · 0.80

Calls 2

writeFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected