◆ FlexFile()
create FlexFile from datasource; FlexFile takes ownership of ds and deletes it when destructed
◆ exists()
bool Ultima::Ultima8::FlexFile::exists |
( |
uint32 |
index | ) |
|
|
inline |
Check if numbered object exists
- Parameters
-
index | index of object to check for |
◆ getDataSource()
◆ getObject()
uint8* Ultima::Ultima8::FlexFile::getObject |
( |
uint32 |
index, |
|
|
uint32 * |
size = nullptr |
|
) |
| |
Get object from file; returns NULL if index is invalid. Must delete the returned buffer afterwards. See also exists(uint32 index)
- Parameters
-
index | index of object to fetch |
size | if non-NULL, size of object is stored in *size |
◆ getSize()
uint32 Ultima::Ultima8::FlexFile::getSize |
( |
uint32 |
index | ) |
const |
Get size of object; returns zero if index is invalid. See also exists(uint32 index)
- Parameters
-
index | index of object to get size of |
◆ getCount()
uint32 Ultima::Ultima8::FlexFile::getCount |
( |
| ) |
const |
|
inline |
Get upper bound for number of objects. In an indexed file this is (probably) the highest index plus one, while in a named file it's (probably) the actual count
The documentation for this class was generated from the following file: