buffer

package
v0.0.0-...-1ab6266 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ring

type Ring[T any] struct {
	// contains filtered or unexported fields
}

func NewRing

func NewRing[T any](first uint64, buf []T) *Ring[T]

func (*Ring[T]) Read

func (r *Ring[T]) Read(wait bool) (T, bool)

func (*Ring[T]) Write

func (r *Ring[T]) Write(overwrite bool, t T)

Jump to

Keyboard shortcuts

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