Make ringbuffer api similar to other data containers in utils