Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPool = New(1024)
Functions ¶
func Get ¶
func Get() *ringbuffer.RingBuffer
func Put ¶
func Put(r *ringbuffer.RingBuffer)
Types ¶
type RingBufferPool ¶
type RingBufferPool struct {
// contains filtered or unexported fields
}
func New ¶
func New(initSize int) *RingBufferPool
func (*RingBufferPool) Get ¶
func (p *RingBufferPool) Get() *ringbuffer.RingBuffer
func (*RingBufferPool) Put ¶
func (p *RingBufferPool) Put(r *ringbuffer.RingBuffer)
Click to show internal directories.
Click to hide internal directories.