Circular buffer: Difference between revisions

Content deleted Content added
No edit summary
Line 19:
:[[Image:Circular buffer - XX123XX.svg|250px]]
 
If two elements are removed, the two oldest values inside of the circular buffer would be removed. Circular buffers use FIFO (''[[first in, first out]]'') logic. In the example, 1 & 2 were the first to enter the circular buffer, they are the first to be removed, leaving 3 inside of the buffer.
 
:[[Image:Circular buffer - XXXX3XX.svg|250px]]