rbuffer

package
v3.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosed = errors.New("buffer closed")

Functions

This section is empty.

Types

type RingBuffer

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

func NewRingBuffer

func NewRingBuffer(size int) *RingBuffer

func (*RingBuffer) Close

func (b *RingBuffer) Close() error

func (*RingBuffer) Read

func (b *RingBuffer) Read(p []byte) (n int, err error)

func (*RingBuffer) Reset

func (b *RingBuffer) Reset()

func (*RingBuffer) Trims added in v3.7.1

func (b *RingBuffer) Trims() int64

func (*RingBuffer) Write

func (b *RingBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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