folly::to_ascii_with

to_ascii_with overloads

Synopses

Declared in <folly/lang/ToAscii.h>

Write the base-Base digits of v, translated by Alphabet, into a fixed-size buffer.

template<
    uint64_t Base,
    typename Alphabet,
    size_t N>
size_t
to_ascii_with(
    char(& out)[],
    uint64_t v);
» more...

Write the base-Base digits of v, translated by Alphabet, into [outb, oute).]

template<
    uint64_t Base,
    typename Alphabet>
size_t
to_ascii_with(
    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