ringbuf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RingBuf

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

func NewRingBuf

func NewRingBuf() *RingBuf

func (RingBuf) Add

func (r RingBuf) Add(bytes []byte) uint32

func (RingBuf) ClearExpired

func (r RingBuf) ClearExpired()

func (RingBuf) Delete

func (r RingBuf) Delete(u uint32)

func (RingBuf) Get

func (r RingBuf) Get(u uint32) []byte

func (RingBuf) Replace

func (r RingBuf) Replace(u uint32, data []byte) uint32

Jump to

Keyboard shortcuts

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