ringbuffer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 Buffer

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

func (*Buffer[T]) CanShrink

func (b *Buffer[T]) CanShrink() bool

func (*Buffer[T]) Cap

func (b *Buffer[T]) Cap() int

func (*Buffer[T]) Compact

func (b *Buffer[T]) Compact()

func (*Buffer[T]) Discard

func (b *Buffer[T]) Discard() bool

func (*Buffer[T]) Grow

func (b *Buffer[T]) Grow(n int)

func (*Buffer[T]) Len

func (b *Buffer[T]) Len() int

func (*Buffer[T]) Peek

func (b *Buffer[T]) Peek() (T, bool)

func (*Buffer[T]) Read

func (b *Buffer[T]) Read() (T, bool)

read from start

func (*Buffer[T]) Reset

func (b *Buffer[T]) Reset()

func (*Buffer[T]) Shrink

func (b *Buffer[T]) Shrink()

func (*Buffer[T]) Write

func (b *Buffer[T]) Write(v T)

write to end

Jump to

Keyboard shortcuts

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