MCPcopy Create free account
hub / github.com/ElementsProject/elements / ConsumeBytes

Method ConsumeBytes

src/test/fuzz/FuzzedDataProvider.h:108–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106// char, unsigned char, uint8_t, etc.
107template <typename T>
108std::vector<T> FuzzedDataProvider::ConsumeBytes(size_t num_bytes) {
109 num_bytes = std::min(num_bytes, remaining_bytes_);
110 return ConsumeBytes<T>(num_bytes, num_bytes);
111}
112
113// Similar to |ConsumeBytes|, but also appends the terminator value at the end
114// of the resulting vector. Useful, when a mutable null-terminated C-string is

Callers

nothing calls this directly

Calls 2

dataMethod · 0.45
shrink_to_fitMethod · 0.45

Tested by

no test coverage detected