MCPcopy Create free account
hub / github.com/fmtlib/fmt / write_bytes

Function write_bytes

include/fmt/format.h:1738–1745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1736
1737template <typename Char, align default_align = align::left, typename OutputIt>
1738FMT_CONSTEXPR auto write_bytes(OutputIt out, string_view bytes,
1739 const format_specs& specs = {}) -> OutputIt {
1740 return write_padded<Char, default_align>(
1741 out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) {
1742 const char* data = bytes.data();
1743 return copy<Char>(data, data + bytes.size(), it);
1744 });
1745}
1746
1747template <typename Char, typename OutputIt, typename UIntPtr>
1748auto write_ptr(OutputIt out, UIntPtr value, const format_specs* specs)

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected