-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from redraskal/dev
- Loading branch information
Showing
25 changed files
with
1,335 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
*.rec | ||
# Dissect output files | ||
/*.json | ||
/*.xlsx | ||
*.bin | ||
# Memory dumps | ||
*.dmp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package dissect | ||
|
||
import ( | ||
"errors" | ||
"github.com/klauspost/compress/zstd" | ||
"io" | ||
) | ||
|
||
var ErrInvalidFile = errors.New("dissect: not a dissect file") | ||
var ErrInvalidFolder = errors.New("dissect: not a match folder") | ||
var ErrInvalidLength = errors.New("dissect: received an invalid length of bytes") | ||
var ErrInvalidStringSep = errors.New("dissect: invalid string separator") | ||
|
||
// Ok returns true if err only pertains to EOF (read was successful). | ||
func Ok(err error) bool { | ||
// zstd.ErrMagicMismatch is expected at EOF because .rec files have extra non-compressed data. | ||
return err == nil || err == io.EOF || err == zstd.ErrMagicMismatch | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.