Initial work

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
This commit is contained in:
Caleb Gardner
2023-12-23 02:48:54 -06:00
parent d4d1b2c2b2
commit 707391baba
23 changed files with 860 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
package decompress
import (
"bytes"
"io"
"github.com/therootcompany/xz"
)
type Xz struct{}
func (x Xz) Decompress(data []byte) ([]byte, error) {
rdr, err := xz.NewReader(bytes.NewReader(data), 0)
if err != nil {
return nil, err
}
return io.ReadAll(rdr)
}