ioutil2

package
v1.0.0-rc1-debug Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSectionReader

func NewSectionReader(rd SectionReader, start, end int64) (*io.SectionReader, error)

func NewSectionWriter

func NewSectionWriter(wr io.WriteSeeker, start, end int64) (io.WriteSeeker, error)

Types

type Buffer

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

func NewBuffer

func NewBuffer(b []byte) *Buffer

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte

func (*Buffer) Read

func (b *Buffer) Read(v []byte) (int, error)

func (*Buffer) ReadAt

func (b *Buffer) ReadAt(v []byte, off int64) (int, error)

func (*Buffer) Seek

func (b *Buffer) Seek(offset int64, whence int) (int64, error)

func (*Buffer) Write

func (b *Buffer) Write(v []byte) (int, error)

type SectionReader

type SectionReader interface {
	io.Reader
	io.ReaderAt
	io.Seeker
}

Jump to

Keyboard shortcuts

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