Documentation ¶
Index ¶
Constants ¶
View Source
const (
NoData = 0xFFFFFFFFFFFFFFFF
)
Variables ¶
View Source
var New = func(size int) *RingBuffer { b := &RingBuffer{ Size: size, buffer: make([]unsafe.Pointer, size), } b.writeIndex = NoData return b }
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct { Size int // contains filtered or unexported fields }
func (*RingBuffer) LastIndex ¶
func (b *RingBuffer) LastIndex() uint64
Click to show internal directories.
Click to hide internal directories.