MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / write

Function write

extlibs/fmt/include/fmt/ostream.h:78–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76// Write the content of buf to os.
77template <typename Char>
78void write(std::basic_ostream<Char>& os, buffer<Char>& buf) {
79 const Char* buf_data = buf.data();
80 using unsigned_streamsize = std::make_unsigned<std::streamsize>::type;
81 unsigned_streamsize size = buf.size();
82 unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>());
83 do {
84 unsigned_streamsize n = size <= max_size ? size : max_size;
85 os.write(buf_data, static_cast<std::streamsize>(n));
86 buf_data += n;
87 size -= n;
88 } while (size != 0);
89}
90
91template <typename Char, typename T>
92void format_value(buffer<Char>& buf, const T& value,

Callers 15

writeMethod · 0.85
vprintFunction · 0.85
on_24_hourMethod · 0.85
on_12_hourMethod · 0.85
on_minuteMethod · 0.85
on_secondMethod · 0.85
on_24_hour_timeMethod · 0.85
on_iso_timeMethod · 0.85
writeMethod · 0.85
operator()Method · 0.85
parse_format_stringFunction · 0.85
fileClass · 0.85

Calls 3

dataMethod · 0.45
sizeMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected