llvm::encodeSLEB128

encodeSLEB128 overloads

Synopses

Declared in <llvm/Support/LEB128.h>

Utility function to encode a SLEB128 value to an output stream. Returns the length in bytes of the encoded value.

unsigned int
encodeSLEB128(
    int64_t Value,
    raw_ostream& OS,
    unsigned int PadTo = 0);
» more...

Utility function to encode a SLEB128 value to a buffer. Returns the length in bytes of the encoded value.

unsigned int
encodeSLEB128(
    int64_t Value,
    uint8_t* p,
    unsigned int PadTo = 0);
» more...