
Parser for the basic Tape ARchive Format (TAR). More...
#include <utils/tar.h>
Classes | |
struct | File |
File Entry. More... | |
Public Types | |
enum | Type : char { TYPE_REG_OLD = '\0', TYPE_REG = '0', TYPE_HARD_LINK = '1', TYPE_SYM_LINK = '2', TYPE_CHR = '3', TYPE_BLK = '4', TYPE_DIR = '5', TYPE_FIFO = '6', TYPE_CONTIG = '7' } |
Public Member Functions | |
assert_size (File, BLOCK_SIZE) | |
Tar (void *data) | |
Constructor. More... | |
File * | get (unsigned entry) |
Get the entry for the n-th file. More... | |
unsigned | count () |
Number of entries in the archive. More... | |
Parser for the basic Tape ARchive Format (TAR).
enum Tar::Type : char |
|
inlineexplicit |
Constructor.
data | Buffer with the (full) contents of the TAR file |
Tar::File * Tar::get | ( | unsigned | entry | ) |
Get the entry for the n-th file.
entry | Index of the file entry |
unsigned Tar::count | ( | ) |
Number of entries in the archive.