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
+13
View File
@@ -0,0 +1,13 @@
package decompress
import (
"bytes"
"github.com/rasky/go-lzo"
)
type Lzo struct{}
func (l Lzo) Decompress(data []byte) ([]byte, error) {
return lzo.Decompress1X(bytes.NewReader(data), len(data), 0)
}