circular

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circular

type Circular struct {
	// contains filtered or unexported fields
}

Circular is our circular buffer

func NewCircular

func NewCircular(size uint64) *Circular

constructor like function for new circular

func (Circular) Empty

func (b Circular) Empty() bool

Empty will tell you if the Circular is empty

func (Circular) Full

func (b Circular) Full() bool

Full returns true if the Circular is "full"

func (*Circular) Pop

func (b *Circular) Pop() unsafe.Pointer

Pop returns the next item on the ring Circular

func (*Circular) PopBoolean

func (b *Circular) PopBoolean() bool

func (*Circular) Push

func (b *Circular) Push(object unsafe.Pointer)

Push places an item onto the ring Circular

func (*Circular) PushBoolean

func (b *Circular) PushBoolean(val bool)

func (Circular) Size

func (b Circular) Size() uint64

Size is the size of the Circular

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL