… | |
… | |
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 |
56 | * If the output buffer is not large enough or any error occurs |
57 | * return 0, otherwise return the number of bytes used (which might |
57 | * return 0, otherwise return the number of bytes used (which might |
58 | * be considerably larger than in_len, so it makes sense to always |
58 | * be considerably larger than in_len, so it makes sense to always |
59 | * use out_len == in_len). |
59 | * use out_len == in_len - 1), to ensure _some_ compression, and store |
|
|
60 | * the data uncompressed otherwise. |
60 | * |
61 | * |
61 | * lzf_compress might use different algorithms on different systems and |
62 | * lzf_compress might use different algorithms on different systems and |
62 | * thus might result in different compressed strings depending on the |
63 | * thus might result in different compressed strings depending on the |
63 | * phase of the moon or similar factors. However, all these strings are |
64 | * phase of the moon or similar factors. However, all these strings are |
64 | * architecture-independent and will result in the original data when |
65 | * architecture-independent and will result in the original data when |