ZLib |
Post Reply |
Author | |
Daniel
Groupie Joined: 20 June 2006 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 14 February 2010 at 12:36pm |
One request to make the ZLib-functions from the Library public, so that we have access to it. This is done very simple:
Add this line into XTPGraphicBitmapPng.cpp
_XTP_EXT_CLASS int ZLibCompress( Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
{ return compress( dest, destLen, source, sourceLen); } _XTP_EXT_CLASS ULONG ZLibCompressBound( uLong sourceLen )
{ return compressBound ( sourceLen ); } _XTP_EXT_CLASS int ZLibUncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
{ return uncompress ( dest, destLen, source, sourceLen ); } And these lines into XTPGraphicBitmapPng.h
_XTP_EXT_CLASS int ZLibCompress( BYTE *dest, ULONG *destLen, const BYTE *source, ULONG sourceLen);
_XTP_EXT_CLASS ULONG ZLibCompressBound( ULONG sourceLen ); _XTP_EXT_CLASS int ZLibUncompress (BYTE *dest, ULONG *destLen, const BYTE *source, ULONG sourceLen); That's all and everyone can use the zlib functions without adding them again and again.
Daniel
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Thanks, we added it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Marcus
Groupie Joined: 04 June 2006 Location: Germany Status: Offline Points: 42 |
Post Options
Thanks(0)
|
well done!
could you also add compress2() ?!
Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |