Function that allow the compression and expansion of Eina_Binbuf with non destructive algorithm. More...
| Enumerations | |
| enum | Emile_Compressor_Type { EMILE_ZLIB , EMILE_LZ4 , EMILE_LZ4HC } | 
| Supported type of compression algorithm.  More... | |
| enum | Emile_Compressor_Level { EMILE_COMPRESSOR_DEFAULT = -1 , EMILE_COMPRESSOR_NONE = 0 , EMILE_COMPRESSOR_FAST = 1 , EMILE_COMPRESSOR_BEST = 9 } | 
| Compression level to apply.  More... | |
| Functions | |
| Eina_Binbuf * | emile_compress (const Eina_Binbuf *in, Emile_Compressor_Type t, Emile_Compressor_Level level) | 
| Compress an Eina_Binbuf into a new Eina_Binbuf.  More... | |
| Eina_Binbuf * | emile_decompress (const Eina_Binbuf *in, Emile_Compressor_Type t, unsigned int dest_length) | 
| Uncompress a buffer into a newly allocated buffer.  More... | |
| Eina_Bool | emile_expand (const Eina_Binbuf *in, Eina_Binbuf *out, Emile_Compressor_Type t) | 
| Uncompress a buffer into an existing buffer.  More... | |
Function that allow the compression and expansion of Eina_Binbuf with non destructive algorithm.
Supported type of compression algorithm.
Compression level to apply.
| Eina_Binbuf* emile_compress | ( | const Eina_Binbuf * | in, | 
| Emile_Compressor_Type | t, | ||
| Emile_Compressor_Level | level | ||
| ) | 
Compress an Eina_Binbuf into a new Eina_Binbuf.
| in | Buffer to compress. | 
| t | Type of compression logic to use. | 
| level | Level of compression to apply. | 
NULL otherwise.References EINA_FALSE.
Referenced by eet_alias(), and eet_write_cipher().
| Eina_Binbuf* emile_decompress | ( | const Eina_Binbuf * | in, | 
| Emile_Compressor_Type | t, | ||
| unsigned int | dest_length | ||
| ) | 
Uncompress a buffer into a newly allocated buffer.
| in | Buffer to uncompress. | 
| t | Type of compression logic to use. | 
| dest_length | Expected length of the decompressed data. | 
NULL if it failed.NULL. References eina_binbuf_free(), eina_binbuf_manage_new(), EINA_FALSE, and emile_expand().
Referenced by eet_alias_get(), and eet_read_direct().
| Eina_Bool emile_expand | ( | const Eina_Binbuf * | in, | 
| Eina_Binbuf * | out, | ||
| Emile_Compressor_Type | t | ||
| ) | 
Uncompress a buffer into an existing buffer.
| in | Buffer to uncompress. | 
| out | Buffer to expand data into. | 
| t | Type of compression logic to use. | 
References EINA_FALSE.
Referenced by emile_decompress().