MCPcopy Create free account
hub / github.com/MCUdude/MiniCore / clear_buffer

Method clear_buffer

avr/libraries/Flash/src/Flash.cpp:70–73  ·  view source on GitHub ↗

* @brief Clears the RAM buffer * * @param fill optional parameter to set what content the buffer will be * filled with. Defaults to 0x00 if not present */

Source from the content-addressed store, hash-verified

68 * filled with. Defaults to 0x00 if not present
69 */
70void Flash::clear_buffer(uint8_t fill)
71{
72 memset(_ram_array, fill, buffer_size());
73}
74
75/**
76 * @brief Wrapper function for the RAM buffer. Lets you read a byte from a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected