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

Method forEach

src/utils/dynamic_buffer.cpp:201–205  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

199 * @param func Function to run for every byte.
200 */
201void DynamicBuffer::forEach(const std::function<void(uint8_t&)>& func)
202{
203 for (uint8_t& byte : _data)
204 func(byte);
205}
206
207/**
208 * Runs the specified function for every single byte in the DynamicBuffer

Callers 2

performDecompressionMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64