MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / uintToString

Function uintToString

vrclient_x64/jsoncpp.cpp:148–154  ·  view source on GitHub ↗

Converts an unsigned integer to string. * @param value Unsigned interger to convert to string * @param current Input/Output string buffer. * Must have at least uintToStringBufferSize chars free. */

Source from the content-addressed store, hash-verified

146 * Must have at least uintToStringBufferSize chars free.
147 */
148static inline void uintToString(LargestUInt value, char*& current) {
149 *--current = 0;
150 do {
151 *--current = static_cast<signed char>(value % 10U + static_cast<unsigned>('0'));
152 value /= 10;
153 } while (value != 0);
154}
155
156/** Change ',' to '.' everywhere in buffer.
157 *

Callers 1

valueToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected