|
The Pedigree Project 0.1
|
#include <Archive.h>
Collaboration diagram for Archive:Classes | |
| struct | ArchiveFile |
Public Member Functions | |
| Archive (uint8_t *pPhys, size_t sSize) | |
| ~Archive () | |
| size_t | getNumFiles () |
| size_t | getFileSize (size_t n) |
| char * | getFileName (size_t n) |
| uintptr_t * | getFile (size_t n) |
Private Member Functions | |
| ArchiveFile * | getFirst () |
| ArchiveFile * | getNext (ArchiveFile *pFile) |
| ArchiveFile * | get (size_t n) |
Private Attributes | |
| uint8_t * | m_pBase |
| MemoryRegion | m_Region |
This class provides functions for extracting an archive file as made by UNIX Tar.
| Archive::Archive | ( | uint8_t * | pPhys, |
| size_t | sSize | ||
| ) |
Constructor; takes the physical address of a Tar archive.
Definition at line 28 of file Archive.cc.
References PhysicalMemoryManager::continuous, EMIT_IF, PhysicalMemoryManager::getPageSize(), PhysicalMemoryManager::instance(), VirtualAddressSpace::KernelMode, panic(), and MemoryRegion::virtualAddress().
| Archive::~Archive | ( | ) |
Destructor; returns the physical memory used during construction to the physical memory pool.
Definition at line 47 of file Archive.cc.
|
private |
Definition at line 94 of file Archive.cc.
| uintptr_t * Archive::getFile | ( | size_t | n | ) |
Returns a pointer to the first byte of the n'th file.
| n | The file to retrieve. |
Definition at line 71 of file Archive.cc.
| char * Archive::getFileName | ( | size_t | n | ) |
Returns the name of the n'th file in the archive, in bytes.
| n | The file to retrieve. |
Definition at line 67 of file Archive.cc.
| size_t Archive::getFileSize | ( | size_t | n | ) |
Returns the size of the n'th file in the archive, in bytes.
| n | The file to retrieve. |
Definition at line 61 of file Archive.cc.
|
private |
Definition at line 75 of file Archive.cc.
|
private |
Definition at line 84 of file Archive.cc.
| size_t Archive::getNumFiles | ( | ) |
Returns the number of files in the archive.
Definition at line 51 of file Archive.cc.
|
private |