2018-06-09 00:44:03 +00:00
|
|
|
#ifndef LZW_SRC_BITPACK_H_
|
|
|
|
#define LZW_SRC_BITPACK_H_
|
|
|
|
|
|
|
|
#include <cstdint>
|
2018-06-10 19:21:06 +00:00
|
|
|
#include <string>
|
2018-06-09 00:44:03 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-06-11 19:26:05 +00:00
|
|
|
std::vector<unsigned char> pack(const std::vector<std::uint16_t> &);
|
2018-06-09 20:59:11 +00:00
|
|
|
|
2018-06-21 15:38:51 +00:00
|
|
|
std::vector<unsigned char> pack_n(std::vector<std::uint16_t>::const_iterator,
|
|
|
|
std::vector<std::uint16_t>::const_iterator,
|
|
|
|
std::vector<unsigned char> &, int);
|
2018-06-09 00:44:03 +00:00
|
|
|
|
2018-06-21 15:38:51 +00:00
|
|
|
std::vector<unsigned char> pack_16(std::vector<std::uint16_t>::const_iterator,
|
|
|
|
std::vector<std::uint16_t>::const_iterator,
|
|
|
|
std::vector<unsigned char> &);
|
2018-06-09 00:44:03 +00:00
|
|
|
|
2018-06-11 19:26:05 +00:00
|
|
|
std::vector<std::uint16_t> unpack(std::basic_string<unsigned char> &&);
|
2018-06-09 20:59:11 +00:00
|
|
|
|
2018-06-11 19:26:05 +00:00
|
|
|
std::vector<std::uint16_t>
|
2018-06-17 04:38:57 +00:00
|
|
|
unpack_n(std::basic_string<unsigned char>::const_iterator t_begin,
|
2018-06-21 15:38:51 +00:00
|
|
|
std::basic_string<unsigned char>::const_iterator t_end,
|
|
|
|
std::vector<std::uint16_t> &, int t_n);
|
2018-06-09 20:59:11 +00:00
|
|
|
|
2018-06-11 19:26:05 +00:00
|
|
|
std::vector<std::uint16_t>
|
2018-06-17 04:38:57 +00:00
|
|
|
unpack_16(std::basic_string<unsigned char>::const_iterator,
|
2018-06-21 15:38:51 +00:00
|
|
|
std::basic_string<unsigned char>::const_iterator,
|
|
|
|
std::vector<std::uint16_t> &);
|
2018-06-09 01:18:28 +00:00
|
|
|
|
2018-06-09 00:44:03 +00:00
|
|
|
#endif /* LZW_SRC_BITPACK_H_ */
|