1
0
mirror of https://github.com/garraflavatra/go-fmp.git synced 2025-07-15 18:54:05 +00:00

Restructure, add script step constants

This commit is contained in:
2025-06-14 16:28:41 +02:00
parent 53134a0d09
commit 10285084eb
8 changed files with 390 additions and 200 deletions

View File

@ -9,6 +9,20 @@ func debug(str string, args ...interface{}) {
// fmt.Printf(str+"\n", args...)
}
func dump(data []byte) {
for _, b := range data {
fmt.Printf("%02x ", b)
}
fmt.Println()
}
func dumpPath(path []uint64) {
for _, p := range path {
fmt.Printf("%v. ", p)
}
fmt.Println()
}
func (f *FmpFile) ToDebugFile(fname string) {
f_sectors, err := os.Create(fname + ".sectors")
if err != nil {