Based on fmtlib's format_int class: Write digits from right to left into a stack allocated buffer. \pre *cursor points to the byte after the one that will be written. \post *cursor points to the byte that was written.
| 141 | // \pre *cursor points to the byte after the one that will be written. |
| 142 | // \post *cursor points to the byte that was written. |
| 143 | inline void FormatOneChar(char c, char** cursor) { *(--(*cursor)) = c; } |
| 144 | |
| 145 | template <typename Int> |
| 146 | void FormatOneDigit(Int value, char** cursor) { |
no outgoing calls
no test coverage detected