5#ifndef WPIUTIL_WPI_LEB128_H_
6#define WPIUTIL_WPI_LEB128_H_
102 std::optional<uint64_t>
ReadOne(std::span<const uint8_t>*
in);
105 uint64_t m_result = 0;
Unsigned LEB128 streaming reader.
Definition: leb128.h:90
std::optional< uint64_t > ReadOne(std::span< const uint8_t > *in)
Decode a single ULEB128 value.
Definition: raw_istream.h:22
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:43
constexpr auto in(type t, int set) -> bool
Definition: core.h:611
Definition: ntcore_cpp.h:26
uint64_t SizeUleb128(uint64_t val)
Get size of unsigned LEB128 data.
uint64_t ReadUleb128(const char *addr, uint64_t *ret)
Read unsigned LEB128 data.
uint64_t WriteUleb128(SmallVectorImpl< char > &dest, uint64_t val)
Write unsigned LEB128 data.