10 #ifndef _UTIL_LZ4_STREAMBUF_H_
11 #define _UTIL_LZ4_STREAMBUF_H_
35 int_type overflow(int_type ch)
override;
37 int_type sync()
override;
39 void compress_and_write();
42 std::vector<char> src_buf;
43 std::vector<char> dest_buf;
44 LZ4F_compressionContext_t ctx{
nullptr};
54 int_type underflow()
override;
62 std::istream& src_str;
63 std::vector<char> src_buf;
64 std::vector<char> dest_buf;
66 size_t src_buf_size{0};
67 LZ4F_decompressionContext_t ctx{
nullptr};