func NewReader(r io.Reader, uncompressedSize int) (io.ReadCloser, error)
NewReader returns a new io.ReadCloser that decompresses a WIM LZX stream until uncompressedSize bytes have been returned.
Reader is an interface used by the decompressor to access the input stream. If the provided io.Reader does not implement Reader, then a bufio.Reader is used.
type Reader interface { io.Reader io.ByteReader }