707391baba
Create Reader Pulled back in Inode decoding and superblock New Data and Metadata readers Added getting of id, fragment, and export table data lazily Added README to squashfs/squashfs
19 lines
271 B
Go
19 lines
271 B
Go
package decompress
|
|
|
|
import (
|
|
"bytes"
|
|
"io"
|
|
|
|
"github.com/ulikunitz/xz/lzma"
|
|
)
|
|
|
|
type Lzma struct{}
|
|
|
|
func (l Lzma) Decompress(data []byte) ([]byte, error) {
|
|
rdr, err := lzma.NewReader(bytes.NewReader(data))
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return io.ReadAll(rdr)
|
|
}
|