folly::uuid_parse

uuid_parse overloads

Synopses

Declared in <folly/codec/Uuid.h>

Checks that s is 36 bytes long and overwrites out with 16 bytes.

UuidParseCode
uuid_parse(
    std::string& out,
    std::string_view s);
» more...

Reads 36 bytes from s and writes 16 bytes to out.

UuidParseCode
uuid_parse(
    uint8_t* out,
    char const* s);
» more...

Return Value

A code indicating whether parsing succeeded.

Parameters

NameDescription
outDestination string receiving the 16 decoded bytes.
sSource view holding the 36 UUID characters.