ringbuffer

package
v0.0.0-...-5cc1d31 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 0 Imported by: 0

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 New

func New(size int, overlap bool) *RingBuffer

func (*RingBuffer) Len

func (r *RingBuffer) Len() int

func (*RingBuffer) Read

func (r *RingBuffer) Read(n int) []T

func (*RingBuffer) Reset

func (r *RingBuffer) Reset()

func (*RingBuffer) Write

func (r *RingBuffer) Write(p []T) int

type T

type T = interface{}

Jump to

Keyboard shortcuts

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