Documentation ¶
Overview ¶
Package readerat provides utilities for the io.ReaderAt type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadSeeker ¶
type ReadSeeker struct { ReaderAt io.ReaderAt Size int64 // contains filtered or unexported fields }
ReadSeeker is an io.ReadSeeker implementation based on an io.ReaderAt (and an int64 size).
For example, an os.File is both an io.ReaderAt and an io.ReadSeeker, but its io.ReadSeeker methods are not safe to use concurrently. In comparison, multiple readerat.ReadSeeker values (using the same os.File as their io.ReaderAt) are safe to use concurrently. Each can Read and Seek independently.
A single readerat.ReadSeeker is not safe to use concurrently.
Do not modify its exported fields after calling any of its methods.
Click to show internal directories.
Click to hide internal directories.