Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LazyFileReader ¶
type LazyFileReader struct {
// contains filtered or unexported fields
}
LazyFileReader implements a SizedReader which opens a file on first read and closes it again after the reader has reached EOF.
func NewFileReader ¶
func NewFileReader(name string) (*LazyFileReader, error)
func (*LazyFileReader) Close ¶
func (r *LazyFileReader) Close()
func (*LazyFileReader) Size ¶
func (r *LazyFileReader) Size() int64
type ReaderWithSize ¶
func (*ReaderWithSize) Size ¶
func (r *ReaderWithSize) Size() int64
type SizedReader ¶
SizedReader is an io.Reader with a known size
func NewSizedReader ¶
func NewSizedReader(r io.Reader, size int64) SizedReader
NewSizedReader returns a SizedReader given a reader and a size. The returned SizedReader is a ReaderWithSize.
Click to show internal directories.
Click to hide internal directories.