Public Types |
enum | {
RES_MAGIC = 0x3020c49b,
RES_VERSION = 1
} |
Public Methods |
| Resources (SeekableIO *pcStream) |
| Construct an os::Resources object from a seekable data stream. More...
|
| Resources (int nImageID) |
| Construct a os::Resources from a executable or DLL image ID. More...
|
| Resources (SeekableIO *pcStream, off_t nResOffset, bool bCreate=false) |
| Construct a os::Resources object from a seekable data stream. More...
|
| ~Resources () |
void | DetachStream () |
| Detach the data-stream to avoid it being deleted by the constructor. More...
|
int | GetResourceCount () const |
| Get the number of resources embedded in this archive. More...
|
std::string | GetResourceName (uint nIndex) const |
| Get the name of a specified resource. More...
|
std::string | GetResourceType (uint nIndex) const |
| Get the mime-type of a specified resource. More...
|
ssize_t | GetResourceSize (uint nIndex) const |
| Get the size of a specified resource. More...
|
ssize_t | ReadResource (const std::string &cResName, void *pBuffer, std::string *pzResType, ssize_t nSize) |
| Read data from a named resource. More...
|
ResStream * | GetResourceStream (const std::string &cName) |
| Get a seekable-data stream referencing a resource's data. More...
|
ResStream * | GetResourceStream (uint nIndex) |
| Get a seekable-data stream referencing a resource's data. More...
|
ResStream * | CreateResource (const std::string &cName, const std::string &cType, ssize_t nSize) |
| Create a new resource. More...
|
status_t | FindExecutableResource (SeekableIO *pcStream, off_t *pnOffset, ssize_t *pnSize, const char *pzSectionName=NULL) |
| Locate the resource section in an AtheOS executable or DLL. More...
|