ioseek

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReaderAtSeeker

type ReaderAtSeeker struct {
	io.ReaderAt
	// contains filtered or unexported fields
}

ReaderAtSeeker wraps an io.ReaderAt to provide io.Seeker behavior. It embeds io.RederAt, thereby inheriting its methods directly.

func NewReaderAtSeeker

func NewReaderAtSeeker(readerAt io.ReaderAt, size int64) *ReaderAtSeeker

NewReaderAtSeeker creates a new ReaderAtSeeker with the provided io.ReaderAt and file size.

func (*ReaderAtSeeker) Read

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

Read reads up to len(p) bytes into p.

func (*ReaderAtSeeker) Seek

func (r *ReaderAtSeeker) Seek(offset int64, whence int) (int64, error)

Seek implements the io.Seeker interface.

Jump to

Keyboard shortcuts

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