fn init(allocator: Allocator, capacity: usize) Allocator.Error!RingBuffer

Allocate a new RingBuffer; deinit() should be called to free the buffer.

Parameters

allocator: Allocator,
capacity: usize,