Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RingBuffer ¶
type RingBuffer struct {
// contains filtered or unexported fields
}
func MakeRingBuffer ¶
func MakeRingBuffer(size uint64) *RingBuffer
func (*RingBuffer) Done ¶
func (ring *RingBuffer) Done(pos uint64) error
rewrite the pos value
pos,err := ring.Read() if err != nil { xxx } defer ring.Done(pos)
func (*RingBuffer) IsEmpty ¶
func (ring *RingBuffer) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.