MCPcopy Create free account
hub / github.com/avast/retdec / forEachReverse

Method forEachReverse

src/utils/dynamic_buffer.cpp:213–222  ·  view source on GitHub ↗

* Runs the specified function for every single byte in the DynamicBuffer * in the reverse order. * * @param func Function to run for every byte. */

Source from the content-addressed store, hash-verified

211 * @param func Function to run for every byte.
212 */
213void DynamicBuffer::forEachReverse(const std::function<void(uint8_t&)>& func)
214{
215 for (std::vector<uint8_t>::reverse_iterator itr = _data.rbegin();
216 itr != _data.rend();
217 ++itr)
218 {
219 uint8_t& byte = *itr;
220 func(byte);
221 }
222}
223
224/**
225 * Reads the null or length terminated string from the buffer.

Callers 2

readUnpackingStubMethod · 0.80
TEST_FFunction · 0.80

Calls 2

rbeginMethod · 0.80
rendMethod · 0.80

Tested by 1

TEST_FFunction · 0.64