this successfully implememted gz parsing.

This commit is contained in:
Marcel Nowicki
2022-02-12 00:29:59 +01:00
parent 692ab2ff85
commit 0b0759271a
4 changed files with 165 additions and 74 deletions

View File

@@ -17,8 +17,9 @@ namespace tarconstant {
inline std::string const typeHard = "HARDLINKS";
inline std::string const typeOther = "OTHER";
// valid magicfield
inline std::string const mgcfield = "ustar";
// valid magicfield tar
inline std::string const mgctar = "ustar";
inline constexpr char mgcgzip = '\213';
// Byte offsets
inline uint16_t blocksize = 512; // tar consists of continuous 512 Byte data blocks