RunLength Methods |
The RunLength type exposes the following members.
Name | Description | |
---|---|---|
![]() | Compress |
Reads a sequence of bits from standard input; compresses
them using run-length coding with 8-bit run lengths; and writes the
results to standard output. |
![]() | Expand | Reads a sequence of bits from standard input (that are encoded
using run-length encoding with 8-bit run lengths); decodes them;
and writes the results to standard output. |
![]() ![]() | MainTest |
Sample client that calls compress() if the command-line
argument is "-" an expand() if it is "+". |