MCPcopy Create free account
hub / github.com/Ralim/usb-pd / flush

Method flush

include/ringbuffer.h:51–54  ·  view source on GitHub ↗

Clear the entire buffer

Source from the content-addressed store, hash-verified

49 size_t getFree() const { return size - getOccupied(); }
50 // Clear the entire buffer
51 void flush() {
52 wrap = false;
53 begin = end = 0;
54 }
55
56private:
57 T buffer[size];

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64