… | |
… | |
53 | * in_data and write the result to out_data, up to a maximum length |
53 | * in_data and write the result to out_data, up to a maximum length |
54 | * of out_len bytes. |
54 | * of out_len bytes. |
55 | * |
55 | * |
56 | * If the output buffer is not large enough or any error occurs return 0, |
56 | * If the output buffer is not large enough or any error occurs return 0, |
57 | * otherwise return the number of bytes used, which might be considerably |
57 | * otherwise return the number of bytes used, which might be considerably |
58 | * more than in_len (but less than 104% of the original size), so it |
58 | * more than in_len (but less than 1 + 104% of the original size), so it |
59 | * makes sense to always use out_len == in_len - 1), to ensure _some_ |
59 | * makes sense to always use out_len == in_len - 1), to ensure _some_ |
60 | * compression, and store the data uncompressed otherwise (with a flag, of |
60 | * compression, and store the data uncompressed otherwise (with a flag, of |
61 | * course. |
61 | * course. |
62 | * |
62 | * |
63 | * lzf_compress might use different algorithms on different systems and |
63 | * lzf_compress might use different algorithms on different systems and |