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

Method write_pointer

extlibs/fmt/include/fmt/format.h:1820–1827  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818
1819 template <typename UIntPtr>
1820 void write_pointer(UIntPtr value, const format_specs* specs) {
1821 int num_digits = count_digits<4>(value);
1822 auto pw = pointer_writer<UIntPtr>{value, num_digits};
1823 if (!specs) return pw(reserve(to_unsigned(num_digits) + 2));
1824 format_specs specs_copy = *specs;
1825 if (specs_copy.align == align::none) specs_copy.align = align::right;
1826 write_padded(specs_copy, pw);
1827 }
1828};
1829
1830using writer = basic_writer<buffer_range<char>>;

Callers 2

write_pointerMethod · 0.45
on_pointerMethod · 0.45

Calls 1

reserveFunction · 0.70

Tested by

no test coverage detected