Move the data around when the ring buffer is resized so that the empty
messages are between the tosave and toget indexes.

3 files changed