class Debugdata

Defined at line 22 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h

This provides trivial decoding of ZBI_TYPE_DEBUGDATA item payloads.

The main contents blob and the three strings each have accessors.

The Init() method always takes a `const` payload, but the mutable_contents()

method will return it as a mutable span that can be used if it's appropriate

to modify the original payload data in place.

Public Methods

fit::result<std::string_view> Init (std::span<const std::byte> payload)

This fails if the header is invalid, meaning it's missing or truncated, or

its sizes add up to more than the payload size available.

Defined at line 26 of file ../../src/lib/zbitl/debugdata.cc

fit::result<std::string_view> Init (std::span<const std::byte> payload)

This fails if the header is invalid, meaning it's missing or truncated, or

its sizes add up to more than the payload size available.

Defined at line 26 of file ../../src/lib/zbitl/debugdata.cc

fit::result<std::string_view> Init (std::span<const std::byte> payload)

This fails if the header is invalid, meaning it's missing or truncated, or

its sizes add up to more than the payload size available.

Defined at line 26 of file ../../src/lib/zbitl/debugdata.cc

fit::result<std::string_view> Init (std::span<const std::byte> payload)

This fails if the header is invalid, meaning it's missing or truncated, or

its sizes add up to more than the payload size available.

Defined at line 26 of file ../../src/lib/zbitl/debugdata.cc

std::span<const std::byte> contents ()

Defined at line 28 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h

std::span<std::byte> mutable_contents ()

Defined at line 30 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h

std::string_view sink_name ()

Defined at line 34 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h

std::string_view vmo_name ()

Defined at line 35 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h

std::string_view log ()

Defined at line 36 of file ../../src/lib/zbitl/include/lib/zbitl/items/debugdata.h