recorder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const InitBufferSize = 8 * 1024
View Source
const MaxBufferSize = 10 * 1024 * 1024

Variables

View Source
var ErrBufferOverflow = errors.New("buffer exceeded max size trying to infer input format")

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	io.Reader
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(r io.Reader) *Recorder

func (*Recorder) Read

func (r *Recorder) Read(b []byte) (int, error)

func (*Recorder) ReadAt

func (r *Recorder) ReadAt(off int, b []byte) (int, error)

type Track

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

func NewTrack

func NewTrack(r *Recorder) *Track

func (*Track) Read

func (t *Track) Read(b []byte) (int, error)

func (*Track) Reset

func (t *Track) Reset()

Jump to

Keyboard shortcuts

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