pub fn compress(codec: TestCodec, data: &[u8]) -> Vec<u8> ⓘExpand description
data compressed by codec: LZMA as Unity stores it (the property byte
0x5D, the 4-byte dictionary size, the raw LZMA1 stream), LZ4 and LZ4HC
as one LZ4 block, anything else stored as it is.