123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- #ifndef BOOST_BEAST_ZLIB_ZLIB_HPP
- #define BOOST_BEAST_ZLIB_ZLIB_HPP
- #include <boost/beast/core/detail/config.hpp>
- #include <cstdint>
- #include <cstdlib>
- namespace boost {
- namespace beast {
- namespace zlib {
- #if !defined(__MACTYPES__)
- using Byte = unsigned char;
- #endif
- using uInt = unsigned int;
- enum kind
- {
- binary = 0,
- text = 1,
- unknown = 2
- };
- struct z_params
- {
-
- void const* next_in;
-
- std::size_t avail_in;
-
- std::size_t total_in = 0;
-
- void* next_out;
-
- std::size_t avail_out;
-
- std::size_t total_out = 0;
- int data_type = unknown;
- };
- enum class Flush
- {
-
- none,
- block,
- partial,
- sync,
- full,
- finish,
- trees
- };
- enum compression
- {
- none = 0,
- best_speed = 1,
- best_size = 9,
- default_size = -1
- };
- enum class Strategy
- {
-
- normal,
-
- filtered,
-
- huffman,
-
- rle,
-
- fixed
- };
- }
- }
- }
- #endif
|