[fpc-pascal] ZLIB

Adriaan van Os fpc at microbizz.nl
Tue Nov 9 10:31:05 CET 2010

Rainer Stratmann wrote:
> For a Webserver I need to create the png graphics format.
> I want to use as little external components as possible.
> Has someone experience with the zlib format or specification?
> Can it be used without allocating memory?
> Or with a given memoryblock for operation?

zlib's compress2 operates on memory blocks that you give it, but I am not sure whether it allocates 
temporary buffers. Note that I tried FPC's zlib but it crashed on Windows. Instead, on Windows, I 
am linking to

{$linklib Libs/mingw/libz.a}
{$linklib Libs/mingw/libmsvcrt.a}
{$linklib Libs/mingw/libgcc.a}

On the Mac, zlib is part of the system software.


Adriaan van Os

More information about the fpc-pascal mailing list