data type for buffer in ringbuf