The ringbuffer is already available in ringbuffer.  Don't do this.

Also, I don't think the getpointers above make sense either.

-[Unknown]