// //------------------ DOK FILE -------------------------------------------------- +Header core.util.huffman =pkg core.util.huffman =title core.util.huffman =short =desc Documentation in progress... // // //------------------ PROTO ----------------------------------------------------- huffmanDecodeCode7To0 +Proto huffmanDecodeCode7To0 =type fun BitReader HuffmanTree -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg decoder =type HuffmanTree =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanDecodeCode0To7 +Proto huffmanDecodeCode0To7 =type fun BitReader HuffmanTree -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg decoder =type HuffmanTree =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanEncodeCode7To0 +Proto huffmanEncodeCode7To0 =type fun BitWriter [array Int array Int] Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg encoder =type [array Int array Int] =desc // +arg code =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanEncodeStr0To7 +Proto huffmanEncodeStr0To7 =type fun BitWriter [array Int array Int] Str -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg encoder =type [array Int array Int] =desc // +arg str =type Str =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanEncodeCode0To7 +Proto huffmanEncodeCode0To7 =type fun BitWriter [array Int array Int] Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg encoder =type [array Int array Int] =desc // +arg code =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanBuildEncoder +Proto huffmanBuildEncoder =type fun array Int -> [array Int array Int] =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg codeLengths =type array Int =desc // +arg result =type [array Int array Int] =desc // // //------------------ PROTO ----------------------------------------------------- huffmanBuildDecoder +Proto huffmanBuildDecoder =type fun array Int -> HuffmanTree =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg codeLengths =type array Int =desc // +arg result =type HuffmanTree =desc // // //------------------ PROTO ----------------------------------------------------- huffmanTreeFromFifos +Proto huffmanTreeFromFifos =type fun array fifo Int Int -> HuffmanTree =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg fifos =type array fifo Int =desc // +arg depth =type Int =desc // +arg result =type HuffmanTree =desc // // //------------------ PROTO ----------------------------------------------------- huffmanComputeCodeLengths +Proto huffmanComputeCodeLengths =type fun array Int -> array Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg counts =type array Int =desc // +arg result =type array Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanCountAdd +Proto huffmanCountAdd =type fun array Int Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg counts =type array Int =desc // +arg val =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanCountStr +Proto huffmanCountStr =type fun Str array Int -> array Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg data =type Str =desc // +arg extra =type array Int =desc // +arg result =type array Int =desc // // //------------------ PROTO ----------------------------------------------------- huffmanDumpList +Proto huffmanDumpList =type fun list HuffmanTree -> list HuffmanTree =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg l =type list HuffmanTree =desc // +arg result =type list HuffmanTree =desc // // //------------------ PROTO ----------------------------------------------------- huffmanDump +Proto huffmanDump =type fun HuffmanTree -> HuffmanTree =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg t =type HuffmanTree =desc // +arg result =type HuffmanTree =desc // // //------------------ PROTO ----------------------------------------------------- huffmanDumpEx +Proto huffmanDumpEx =type fun HuffmanTree -> HuffmanTree =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg t =type HuffmanTree =desc // +arg result =type HuffmanTree =desc // // //------------------ PROTO ----------------------------------------------------- HuffmanTree +Proto HuffmanTree =type HuffmanTree =mode sum =pkg core.util.huffman =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- brBytes +Proto brBytes =type fun BitReader Int -> Str =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg n =type Int =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- brBit7To0 +Proto brBit7To0 =type fun BitReader -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- brBit0To7 +Proto brBit0To7 =type fun BitReader -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- brBitsMsb +Proto brBitsMsb =type fun BitReader Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg n =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- brBitsLsb +Proto brBitsLsb =type fun BitReader Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg br =type BitReader =desc // +arg n =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- brCreate +Proto brCreate =type fun Str Int -> BitReader =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg src =type Str =desc // +arg i =type Int =desc // +arg result =type BitReader =desc // // //------------------ PROTO ----------------------------------------------------- BitReader +Proto BitReader =type BitReader =mode structure =pkg core.util.huffman =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- bwBitsLsbInv +Proto bwBitsLsbInv =type fun BitWriter Int Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg data =type Int =desc // +arg nbits =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- bwBitsMsb +Proto bwBitsMsb =type fun BitWriter Int Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg data =type Int =desc // +arg nbits =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- bwBitsLsb +Proto bwBitsLsb =type fun BitWriter Int Int -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg data =type Int =desc // +arg nbits =type Int =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- bwBytes +Proto bwBytes =type fun BitWriter a1 -> Buffer =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg str =type a1 =desc // +arg result =type Buffer =desc // // //------------------ PROTO ----------------------------------------------------- bwFinal +Proto bwFinal =type fun BitWriter -> Str =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg result =type Str =desc // // //------------------ PROTO ----------------------------------------------------- bwAlign +Proto bwAlign =type fun BitWriter -> Int =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg bw =type BitWriter =desc // +arg result =type Int =desc // // //------------------ PROTO ----------------------------------------------------- bwCreate +Proto bwCreate =type fun -> BitWriter =mode function =pkg core.util.huffman =impl mcy =link =desc // +arg result =type BitWriter =desc // // //------------------ PROTO ----------------------------------------------------- BitWriter +Proto BitWriter =type BitWriter =mode structure =pkg core.util.huffman =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- nodeH +Proto nodeH =type fun Int HuffmanTree HuffmanTree -> HuffmanTree =mode constructor =pkg core.util.huffman =impl mcy =link =desc // // //------------------ PROTO ----------------------------------------------------- leafH +Proto leafH =type fun Int Int -> HuffmanTree =mode constructor =pkg core.util.huffman =impl mcy =link =desc