llvm::decodeULEB128AndInc

Decode a ULEB128 value and advance the pointer past the encoded bytes.

Synopsis

Declared in <llvm/Support/LEB128.h>

uint64_t
decodeULEB128AndInc(
    uint8_t const*& p,
    uint8_t const* end,
    char const** error = nullptr);

Return Value

The decoded unsigned value, or 0 on error.

Parameters

NameDescription
pPointer to the encoded bytes; advanced by the number of bytes read.
endOptional end of buffer; decoding stops with an error if reached.
errorIf non-null, receives a static error message on failure.