struct Sleb128

Defined at line 40 of file ../../src/lib/elfldltl/include/lib/elfldltl/dwarf/encoding.h

SLEB128 is the same encoding as ULEB128, but the value is understood to

be sign-extended from the highest bit present in the encoded value.

Public Members

int64_t value
size_t size_bytes
static const size_t kMaxBytes

Public Methods

std::optional<Sleb128> Read (std::span<const std::byte> bytes)

Read one SLEB128 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 27 of file ../../src/lib/elfldltl/leb128.cc

std::optional<Sleb128> Read (std::span<const std::byte> bytes)

Read one SLEB128 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 27 of file ../../src/lib/elfldltl/leb128.cc

std::optional<Sleb128> Read (std::span<const std::byte> bytes)

Read one SLEB128 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 27 of file ../../src/lib/elfldltl/leb128.cc

std::optional<Sleb128> Read (std::span<const std::byte> bytes)

Read one SLEB128 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 27 of file ../../src/lib/elfldltl/leb128.cc

std::optional<Sleb128> Read (std::span<const std::byte> bytes)

Read one SLEB128 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 27 of file ../../src/lib/elfldltl/leb128.cc