Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReaderDrained = errors.New("io.Reader has been drained")
ErrReaderDrained if reading from a drained PreviewReader
View Source
var ErrUnsupportedType = errors.New("Unsupported decompression type")
Functions ¶
func Decompress ¶
Decompress varius types of compression types
Types ¶
type PreviewReader ¶
type PreviewReader struct {
// contains filtered or unexported fields
}
PreviewReader allows for seeking into a stream that does not support rewind
func NewPreviewReader ¶
func NewPreviewReader(r io.Reader) *PreviewReader
NewPreviewReader wrapps a reader with PreviewReader
func (*PreviewReader) Drain ¶
func (pr *PreviewReader) Drain() io.Reader
Drain returns reader that is reset
Click to show internal directories.
Click to hide internal directories.