Documentation ¶ Overview ¶ Package slicer provides an io.Reader that returns subsets of a file. Index ¶ type Reader func NewReader(seeker io.ReadSeeker, slices []Slice) (*Reader, error) func (r *Reader) Read(b []byte) (int, error) type Slice func (s Slice) Overlaps(x Slice) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Reader ¶ type Reader struct { // contains filtered or unexported fields } Reader implements io.Reader reading the sliced regions provided to it from the underlying file thus extracting subsets of an underlying file without modifying or copying the file. func NewReader ¶ func NewReader(seeker io.ReadSeeker, slices []Slice) (*Reader, error) func (*Reader) Read ¶ func (r *Reader) Read(b []byte) (int, error) type Slice ¶ type Slice struct { Offset uint64 Length uint64 } func (Slice) Overlaps ¶ func (s Slice) Overlaps(x Slice) bool Source Files ¶ View all Source files reader.go slice.go Click to show internal directories. Click to hide internal directories.