ScummVM API documentation
Ultima::Ultima8::RawArchive Class Reference
Inheritance diagram for Ultima::Ultima8::RawArchive:
Ultima::Ultima8::Archive Ultima::Ultima8::UsecodeFlex

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::SeekableReadStreamget_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
 

Member Function Documentation

◆ uncache()

void Ultima::Ultima8::RawArchive::uncache ( uint32  index)
overridevirtual

Uncache a single object Potentially dangerous. See uncache()

Implements Ultima::Ultima8::Archive.

◆ get_datasource()

virtual Common::SeekableReadStream* Ultima::Ultima8::RawArchive::get_datasource ( uint32  index)
virtual

return object as SeekableReadStream. Delete the SeekableReadStream afterwards, but DON'T delete/modify the buffer it points to.


The documentation for this class was generated from the following file: