Public Member Functions | |
RawArchive (Common::SeekableReadStream *rs) | |
void | cache (uint32 index) override |
Cache a single object. | |
void | uncache (uint32 index) override |
bool | isCached (uint32 index) const override |
Check if an object is cached. | |
virtual const uint8 * | get_object_nodel (uint32 index) |
return object. DON'T delete or modify! | |
virtual uint8 * | get_object (uint32 index) |
return object. delete afterwards. This will not cache the object | |
virtual uint32 | get_size (uint32 index) const |
get size of object | |
virtual Common::SeekableReadStream * | get_datasource (uint32 index) |
Public Member Functions inherited from Ultima::Ultima8::Archive | |
Archive () | |
create Archive without any input sources | |
Archive (Common::SeekableReadStream *rs) | |
bool | addSource (FlexFile *af) |
bool | addSource (Common::SeekableReadStream *rs) |
add input source, autodetecting the type (as the constructor) | |
void | cache () |
Cache all objects. | |
void | uncache () |
uint32 | getCount () const |
Protected Attributes | |
Std::vector< uint8 * > | _objects |
Protected Attributes inherited from Ultima::Ultima8::Archive | |
uint32 | _count |
Additional Inherited Members | |
Protected Member Functions inherited from Ultima::Ultima8::Archive | |
uint8 * | getRawObject (uint32 index, uint32 *sizep=0) |
uint32 | getRawSize (uint32 index) const |
|
overridevirtual |
Uncache a single object Potentially dangerous. See uncache()
Implements Ultima::Ultima8::Archive.
|
virtual |
return object as SeekableReadStream. Delete the SeekableReadStream afterwards, but DON'T delete/modify the buffer it points to.