mirror of
https://github.com/xzeshen/huffman
synced 2026-01-09 07:21:12 +00:00
No description
| src | ||
| tests | ||
| huffman.nimble | ||
| LICENSE | ||
| README.md | ||
huffman
Huffman encode/decode for Nim.
API: huffman
import huffman
proc readHuffman
Encodes data.
proc readHuffman(s: Stream): string {.inline, raises: [Defect, IOError, OSError], tags: [ReadIOEffect].}
proc readHuffman
Encodes data.
proc readHuffman(s: string = "input.txt"): string {.inline, raises: [Defect, IOError, OSError], tags: [ReadIOEffect].}
proc huffman
Decodes data.
proc huffman(text: string; path = "output.txt") {.inline, raises: [KeyError, Defect, IOError, OSError, Exception], tags: [WriteIOEffect].}