rbuffer

package
v3.2.6-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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) 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