Helper function to append an unsigned integer value to a char buffer. It is assumed that there's enough space to write the value.
The value to append.
The buffer to append to.
A reference to a variable tracking the next writable index in the buffer.
Helper function to append an unsigned integer value to a char buffer. It is assumed that there's enough space to write the value.