12 Meta m(
"compressor",
"noop");
23 auto os = o.as_stream();
25 if (
env().option(
"mode").as_string() ==
"stream") {
26 auto is = i.as_stream();
27 if (
env().option(
"debug").as_bool()) {
30 std::string txt = ss.str();
37 auto iv = i.as_view();
38 if (
env().option(
"debug").as_bool()) {
48 auto os = o.as_stream();
50 if (
env().option(
"mode").as_string() ==
"stream") {
51 auto is = i.as_stream();
52 if (
env().option(
"debug").as_bool()) {
55 std::string txt = ss.str();
62 auto iv = i.as_view();
63 if (
env().option(
"debug").as_bool()) {
Contains the text compression and encoding framework.
std::string vec_to_debug_string(const T &s, size_t indent=0)
Builds the string representation of a vector of byte values, sorrounded by square brackets ([ and ])...
Base for data compressors.
NoopCompressor(Env &&env)
virtual void decompress(Input &i, Output &o) override final
Decompress the given input to the given output.
Env & env()
Provides access to the environment that the algorithm works in.
An abstraction layer for algorithm output.
Local environment for a compression/encoding/decompression call.
virtual void compress(Input &i, Output &o) override final
Compress the given input to the given output.