8 #ifndef WPIUTIL_WPI_LEB128_H_
9 #define WPIUTIL_WPI_LEB128_H_
13 #include "wpi/SmallVector.h"
40 uint64_t
WriteUleb128(SmallVectorImpl<char>& dest, uint64_t val);
52 uint64_t
ReadUleb128(
const char* addr, uint64_t* ret);
68 #endif // WPIUTIL_WPI_LEB128_H_
namespace to hold default to_json function
Definition: SmallString.h:21
uint64_t WriteUleb128(SmallVectorImpl< char > &dest, uint64_t val)
Write unsigned LEB128 data : the address where the ULEB128 data is to be stored : value to be stored...
uint64_t SizeUleb128(uint64_t val)
Get size of unsigned LEB128 data : value.
uint64_t ReadUleb128(const char *addr, uint64_t *ret)
Read unsigned LEB128 data : the address where the ULEB128 data is stored : address to store the resul...