[#llvm-encodeSLEB128-081] = xref:llvm.adoc[llvm]::encodeSLEB128 :relfileprefix: ../ :mrdocs: Utility function to encode a SLEB128 value to a buffer. == Synopsis Declared in `<llvm/Support/LEB128.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- unsigned int encodeSLEB128( int64_t Value, uint8_t* p, unsigned int PadTo = 0); ---- == Return Value The length in bytes of the encoded value. == Parameters [cols="1,4"] |=== | Name| Description | *Value* | The signed value to encode. | *p* | The buffer to write the encoded bytes to. | *PadTo* | If non‐zero, pad the encoding to at least this many bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#