Function hpk::compress

source ·
pub fn compress(
    options: &CompressOptions,
    r: &mut dyn Read,
    w: &mut dyn Write
) -> Result<u64, HpkError>
Expand description

Compresses the data with the encoder used

if no data is written at all the hpk compression header is written without any chunks it’s the same behaviour as in a DLC file for Tropico 4