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

Name

Description

p

Pointer to the encoded bytes; advanced by the number of bytes read.

end

Optional end of buffer; decoding stops with an error if reached.

error

If non‐null, receives a static error message on failure.

Created with MrDocs