llvm::decodeSLEB128AndInc

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

Synopsis

Declared in <llvm/Support/LEB128.h>

int64_t
decodeSLEB128AndInc(
    uint8_t const*& p,
    uint8_t const* end,
    char const** error = nullptr);

Return Value

The decoded signed 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.