reader

package
v0.0.0-...-db95cbe Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

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

func NewReader

func NewReader(file *torrent.File) *Reader

func (*Reader) Offset

func (r *Reader) Offset() int64

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

func (*Reader) Readahead

func (r *Reader) Readahead() int64

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) (n int64, err error)

func (*Reader) SetReadahead

func (r *Reader) SetReadahead(length int64)

Jump to

Keyboard shortcuts

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