|
resonance 1.0.1
|
Index file of one remix save directory, as parsed off a card. More...
#include <remixindex.h>
Public Member Functions | |
| void | ReadFromStream (IBStream &stream) |
| Read the index back from a stream. | |
| void | WriteToStream (OBStream &stream) |
| Write the index to a stream in the form ReadFromStream() reads. | |
| void | DumpElements () |
| Print every element to the debug console through RemixIndexElement::Dump(). | |
Public Attributes | |
| int | version |
| std::vector< RemixIndexElement > | elements |
Index file of one remix save directory, as parsed off a card.
RemixIndex::ReadFromStream at 0x001366e0 reads version as four bytes, reads the element count as four more, destroys whatever the vector already stored, and then reads that many elements. RemixIndex::DumpElements at 0x00139920 divides the vector's byte span by 104 for its count, which is what pins the element size independently of the destructor.
Neither the class name nor either member name is attested. The class name follows the dump label of its element, and the first member is recorded as a version because it is a single word that precedes the count in the file.
The implicit constructor survives out of line at 0x00183ed0, clearing the vector and leaving version unwritten, and the implicit destructor at 0x00360df8. The four remix tasks and MetRemixManager construct the record on the stack.
| void RemixIndex::ReadFromStream | ( | IBStream & | stream | ) |
Read the index back from a stream.
Reads version and the element count, empties elements, and then appends a fresh element for each and loads it through RemixIndexElement::Load().
| stream | The stream to read from. |
| void RemixIndex::WriteToStream | ( | OBStream & | stream | ) |
Write the index to a stream in the form ReadFromStream() reads.
Writes version, the element count, and then each element through RemixIndexElement::Save().
| stream | The stream to write to. |
| void RemixIndex::DumpElements | ( | ) |
Print every element to the debug console through RemixIndexElement::Dump().
| int RemixIndex::version |
First word of the file. +0x00
| std::vector<RemixIndexElement> RemixIndex::elements |
+0x04