Multipurpose ringbuffers