The OpenD Programming Language

ScrollbackBuffer.CircularBuffer

This is an internal helper for its scrollback buffer.

It is fairly generic and I might move it somewhere else some day.

It has a compile-time specified limit of 8192 entries.

struct ScrollbackBuffer
static
struct CircularBuffer (
T
) {
T[] backing;
enum maxScrollback;
int start;
int length_;
}

Meta