Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

huanghongxun/adaptive-huffman

Repository files navigation

adaptive huffman

A C++ implementation.

Example

// consider s as a tcp_stream
stringstream s;
adaptive_huffman::encoder encode(s);
adaptive_huffman::decoder decode(s);
encode << "123" << 456 << endl << "abc" << flush;
int a; string b;
decode >> a >> b;
cout << a << ' ' << b; // 123456 abc

About

adaptive huffman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published