struct Uleb128
Defined at line 22 of file ../../src/lib/elfldltl/include/lib/elfldltl/dwarf/encoding.h
ULEB128 is a byte-granularity "bignum"-style encoding used in DWARF.
Encodings use as few bytes as needed to represent the value, 7 bits of
value in each byte of encoding: up to 5 bytes for up to 32 bits, up to
10 bytes for up to 64 bits.
Public Members
uint64_t value
size_t size_bytes
static const size_t kMaxBytes
Public Methods
std::optional<Uleb128> Read (std::span<const std::byte> bytes)
Read one ULEB128 value from the byte buffer. Returns std::nullopt if the
buffer is too short or if the encoding uses more bytes than should be
necessary for a 64-bit value.
Defined at line 11 of file ../../src/lib/elfldltl/leb128.cc
std::optional<Uleb128> Read (std::span<const std::byte> bytes)
Read one ULEB128 value from the byte buffer. Returns std::nullopt if the
buffer is too short or if the encoding uses more bytes than should be
necessary for a 64-bit value.
Defined at line 11 of file ../../src/lib/elfldltl/leb128.cc
std::optional<Uleb128> Read (std::span<const std::byte> bytes)
Read one ULEB128 value from the byte buffer. Returns std::nullopt if the
buffer is too short or if the encoding uses more bytes than should be
necessary for a 64-bit value.
Defined at line 11 of file ../../src/lib/elfldltl/leb128.cc
std::optional<Uleb128> Read (std::span<const std::byte> bytes)
Read one ULEB128 value from the byte buffer. Returns std::nullopt if the
buffer is too short or if the encoding uses more bytes than should be
necessary for a 64-bit value.
Defined at line 11 of file ../../src/lib/elfldltl/leb128.cc
std::optional<Uleb128> Read (std::span<const std::byte> bytes)
Read one ULEB128 value from the byte buffer. Returns std::nullopt if the
buffer is too short or if the encoding uses more bytes than should be
necessary for a 64-bit value.
Defined at line 11 of file ../../src/lib/elfldltl/leb128.cc