ubuffer

package module
v0.0.0-...-88aff42 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 3 Imported by: 0

README

ubuffer

Unbounded FIFO buffer for Go, implemented io.Reader and io.Writer

Documentation

Index

Constants

View Source
const MEMSIZE = 50 * (1 << 20)

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer(cap int64, tempDir string) *Buffer

func (*Buffer) Finalize

func (buffer *Buffer) Finalize() error

func (*Buffer) Read

func (buffer *Buffer) Read(p []byte) (n int, err error)

func (*Buffer) Seek

func (buffer *Buffer) Seek(offset int64, whence int) (ret int64, err error)

func (*Buffer) Write

func (buffer *Buffer) 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