folly::to_ascii_decimal

to_ascii_decimal overloads

Synopses

Declared in <folly/lang/ToAscii.h>

Write the decimal digits of v into a fixed-size buffer.

template<size_t N>
size_t
to_ascii_decimal(
    char(& out)[],
    uint64_t v);
» more...

Write the decimal digits of v into [outb, oute).]

size_t
to_ascii_decimal(
    char* outb,
    char const* oute,
    uint64_t v);
» more...

Return Value

The number of bytes written

Parameters

NameDescription
outFixed-size output buffer to write into
vValue to encode
outbStart of the output buffer
outeEnd of the output buffer