From df64b895872074f579d9a4eca7717a4a85982b3f Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Sun, 3 Dec 2017 09:31:19 +1030 Subject: [PATCH] currently creating constructor for RingBuffer --- ringbuffer/RingBuffer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ringbuffer/RingBuffer.go b/ringbuffer/RingBuffer.go index 1b3efc4d..be208c2f 100644 --- a/ringbuffer/RingBuffer.go +++ b/ringbuffer/RingBuffer.go @@ -68,6 +68,10 @@ func (rb *RingBuffer) Make(size int, elementsize int) { rb.mutex = sync.mutex{} } +func NewRingBuffer(size int, elementSize int){ + +} + /* Get provides the address to the next empty element in the RingBuffer. An error is returned if the buffer is full, or there has already been