MCPcopy Create free account
hub / github.com/apache/incubator-pegasus / WritePadding

Function WritePadding

src/utils/string_view.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26namespace {
27void WritePadding(std::ostream &o, size_t pad)
28{
29 char fill_buf[32];
30 memset(fill_buf, o.fill(), sizeof(fill_buf));
31 while (pad) {
32 size_t n = std::min(pad, sizeof(fill_buf));
33 o.write(fill_buf, n);
34 pad -= n;
35 }
36}
37} // namespace
38
39std::ostream &operator<<(std::ostream &o, string_view piece)

Callers 1

string_view.cppFile · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected