The zlib data format is itself portable across platforms. The compression method currently used in zlib essentially never expands the data. zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression.