Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IArchive

The IArchive resource object interface.

An archive resource stores a (ZLib) compressed block of raw data, with optional encryption.


Table members

Methods


GetData()

Get a data object containing the uncompressed data. Calling this method returns a constant data object containing the uncompressed payload data, performing decryption if necessary. If decryption or decompression fails, an empty data object is returned. It is necessary to make a corresponding call to ReleaseData() for every GetData() invocation.

Murl.ConstData GetData()

Returns
Murl.ConstData A constant data object containing the uncompressed contents.

ReleaseData()

Release the previously obtained data.

Boolean ReleaseData()

Returns
Boolean true if successful.