Documentation
¶
Overview ¶
Package ioutil implements I/O utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SeekingReaderAt ¶
type SeekingReaderAt struct {
// contains filtered or unexported fields
}
SeekingReaderAt implements io.ReaderAt through an underlying io.ReadSeeker.
func NewSeekingReaderAt ¶
func NewSeekingReaderAt(r io.ReadSeeker) *SeekingReaderAt
NewSeekingReaderAt creates a new SeekingReaderAt. The SeekingReaderAt takes ownership of r and will modify its seek offset, so callers should not use r after this call.
func (*SeekingReaderAt) Close ¶
func (s *SeekingReaderAt) Close() error
ReadAt implements io.Closer.
func (*SeekingReaderAt) ReadAt ¶
func (s *SeekingReaderAt) ReadAt(p []byte, off int64) (n int, _ error)
ReadAt implements io.ReaderAt.
func (*SeekingReaderAt) Size ¶
func (s *SeekingReaderAt) Size() (int64, error)
Size implements SizeReaderAt.
type SizeReaderAt ¶
A SizeReaderAt is a ReaderAt with a Size method. Use NewSizeReaderAt to adapt different Size interfaces.
func NewSizeReaderAt ¶
func NewSizeReaderAt(r io.ReaderAt) SizeReaderAt
NewSizeReaderAt returns a SizeReaderAt given an io.ReaderAt that implements one of:
- Size() (int64, error)
- Size() int64
- Len() int
- Stat() (fs.FileInfo, error)
- Seek(offset int64, whence int) (int64, error)
Click to show internal directories.
Click to hide internal directories.