class TaggedDataBuilder

Defined at line 21 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.h

A builder for TaggedData that allows us to construct a buffer while hiding the implementation of

the tags. This allows us to make guarantees about the tagged data and also gives is flexibility

in the future to change how the tags are represented (for example, a more optimized range-based

implementation, or possibly to extend to bit-level tags).

Public Methods

void Append (cpp20::span<const uint8_t> new_data)

Defined at line 11 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.cc

void AppendUnknown (size_t count)

Appends the given number of bytes marked as "unknown" to the buffer.

Defined at line 17 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.cc

bool empty ()

Returns information on the accumulated data so far.

Defined at line 24 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.h

TaggedData TakeData ()

Destructively returns a TaggedData, resetting the builder to empty.

Defined at line 24 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.cc

size_t size ()

Defined at line 25 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.h

void Append (std::initializer_list<uint8_t> new_data)

Appends valid bytes to the builder.

Defined at line 28 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.h

template <typename Iterator>
void Append (Iterator begin, Iterator end)

Defined at line 37 of file ../../src/developer/debug/zxdb/common/tagged_data_builder.h