#include <rip.h>
Public Member Functions | |
RIP () | |
Random Index Pack constructor. | |
~RIP () | |
Random Index Pack destructor. | |
PartitionInfoPtr | AddPartition (PartitionPtr Part, Position Offset=-1, UInt32 SID=0) |
Add a partition at the specified location. | |
PartitionInfoPtr | FindPreviousPartition (Position Pos) |
Locate the previous partition to a given location. | |
PartitionInfoPtr | FindNextPartition (Position Pos) |
Locate the next partition to a given location. | |
PartitionInfoPtr | FindPartition (UInt32 SID, Position StreamOffset) |
Locate the partition most likely to contain the given stream offset for a SID. | |
Public Attributes | |
bool | isGenerated |
If not generated then the RIP has been read from a file. |
Holds Random Index Pack data, either loaded from a real Random Index Pack in the file or built by discovering partitions.
RIP | ( | ) |
Random Index Pack constructor.
Sets the pack as generated (as it obviously hasn't been read yet)
~RIP | ( | ) |
Random Index Pack destructor.
PartitionInfoPtr AddPartition | ( | PartitionPtr | Part, | |
Position | Offset = -1 , |
|||
UInt32 | SID = 0 | |||
) |
Add a partition at the specified location.
PartitionInfoPtr FindPreviousPartition | ( | Position | Pos | ) |
Locate the previous partition to a given location.
Finds the nearest partition that is located before a given location
PartitionInfoPtr FindNextPartition | ( | Position | Pos | ) |
Locate the next partition to a given location.
Finds the nearest partition that is located after a given location
PartitionInfoPtr FindPartition | ( | UInt32 | SID, | |
Position | StreamOffset | |||
) |
Locate the partition most likely to contain the given stream offset for a SID.
This may or may not be the correct partition depending on what values are know about partitions, so it is up to the caller to verify this.
< Cleared once we have made a guestimate of StreamPosition
< The real, or guestimated, stream offset of the current partition
bool isGenerated |
If not generated then the RIP has been read from a file.