diff options
author | AndreyL ProductEngine <alihatskiy@productengine.com> | 2018-01-08 21:29:59 +0200 |
---|---|---|
committer | AndreyL ProductEngine <alihatskiy@productengine.com> | 2018-01-08 21:29:59 +0200 |
commit | 472decad98ef8da6a7e3b992c193fdb0c93f9878 (patch) | |
tree | 2d959de692c0d1e285677e6bbf1e40d66daf9d7d /indra/llcommon/llsdserialize.h | |
parent | 7d156389e46cfb3c0bb135e1b3eb873b24beaebe (diff) | |
parent | e358ef21c089dfcc0df5c42627bc2c89731cfa53 (diff) |
Merged in lindenlab/viewer-bear
Diffstat (limited to 'indra/llcommon/llsdserialize.h')
-rw-r--r-- | indra/llcommon/llsdserialize.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/llcommon/llsdserialize.h b/indra/llcommon/llsdserialize.h index 23a0c8cfb1..9f58d44fe7 100644 --- a/indra/llcommon/llsdserialize.h +++ b/indra/llcommon/llsdserialize.h @@ -814,8 +814,24 @@ public: } }; +class LL_COMMON_API LLUZipHelper : public LLRefCount +{ +public: + typedef enum e_zip_result + { + ZR_OK = 0, + ZR_MEM_ERROR, + ZR_SIZE_ERROR, + ZR_DATA_ERROR, + ZR_PARSE_ERROR, + } EZipRresult; + // return OK or reason for failure + static EZipRresult unzip_llsd(LLSD& data, std::istream& is, S32 size); +}; + //dirty little zip functions -- yell at davep LL_COMMON_API std::string zip_llsd(LLSD& data); -LL_COMMON_API bool unzip_llsd(LLSD& data, std::istream& is, S32 size); + + LL_COMMON_API U8* unzip_llsdNavMesh( bool& valid, unsigned int& outsize,std::istream& is, S32 size); #endif // LL_LLSDSERIALIZE_H |