encodeSLEB128 overloads
Declared in <llvm/Support/LEB128.h>
Utility function to encode a SLEB128 value to an output stream.
unsigned int
encodeSLEB128(
int64_t Value,
raw_ostream& OS,
unsigned int PadTo = 0);
» more...
Utility function to encode a SLEB128 value to a buffer.
unsigned int
encodeSLEB128(
int64_t Value,
uint8_t* p,
unsigned int PadTo = 0);
» more...
The length in bytes of the encoded value.
| Name | Description |
|---|---|
| Value | The signed value to encode. |
| OS | The output stream to write the encoded bytes to. |
| PadTo | If non-zero, pad the encoding to at least this many bytes. |
| p | The buffer to write the encoded bytes to. |