C# 클래스 hpack.HuffmanEncoder

파일 보기 프로젝트 열기: ringostarr80/hpack 1 사용 예제들

공개 메소드들

메소드 설명
Encode ( BinaryWriter output, byte data ) : void

Compresses the input string literal using the Huffman coding.

Encode ( BinaryWriter output, byte data, int off, int len ) : void

Compresses the input string literal using the Huffman coding.

GetEncodedLength ( byte data ) : int

Returns the number of bytes required to Huffman encode the input string literal.

HuffmanEncoder ( int codes, byte lengths ) : System

Creates a new Huffman encoder with the specified Huffman coding.

메소드 상세

Encode() 공개 메소드

Compresses the input string literal using the Huffman coding.
if an I/O error occurs.
public Encode ( BinaryWriter output, byte data ) : void
output System.IO.BinaryWriter the output stream for the compressed data
data byte the string literal to be Huffman encoded
리턴 void

Encode() 공개 메소드

Compresses the input string literal using the Huffman coding.
if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
public Encode ( BinaryWriter output, byte data, int off, int len ) : void
output System.IO.BinaryWriter the output stream for the compressed data
data byte the string literal to be Huffman encoded
off int the start offset in the data
len int the number of bytes to encode
리턴 void

GetEncodedLength() 공개 메소드

Returns the number of bytes required to Huffman encode the input string literal.
public GetEncodedLength ( byte data ) : int
data byte the string literal to be Huffman encoded
리턴 int

HuffmanEncoder() 공개 메소드

Creates a new Huffman encoder with the specified Huffman coding.
public HuffmanEncoder ( int codes, byte lengths ) : System
codes int the Huffman codes indexed by symbol
lengths byte the length of each Huffman code
리턴 System