Show / Hide Table of Contents

    Class HuffmanEncoder

    Inheritance
    Object
    HuffmanEncoder
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Titanium.Web.Proxy.Http2.Hpack
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class HuffmanEncoder

    Fields

    | Improve this Doc View Source

    Instance

    Huffman Encoder

    Declaration
    public static readonly HuffmanEncoder Instance
    Field Value
    Type Description
    HuffmanEncoder

    Methods

    | Improve this Doc View Source

    Encode(BinaryWriter, Byte[])

    Compresses the input string literal using the Huffman coding.

    Declaration
    public void Encode(BinaryWriter output, byte[] data)
    Parameters
    Type Name Description
    BinaryWriter output

    the output stream for the compressed data

    Byte[] data

    the string literal to be Huffman encoded

    Exceptions
    Type Condition
    IOException

    if an I/O error occurs.

    | Improve this Doc View Source

    Encode(BinaryWriter, Byte[], Int32, Int32)

    Compresses the input string literal using the Huffman coding.

    Declaration
    public void Encode(BinaryWriter output, byte[] data, int off, int len)
    Parameters
    Type Name Description
    BinaryWriter output

    the output stream for the compressed data

    Byte[] data

    the string literal to be Huffman encoded

    Int32 off

    the start offset in the data

    Int32 len

    the number of bytes to encode

    Exceptions
    Type Condition
    IOException

    if an I/O error occurs. In particular, an

    IOException
    may be thrown if the output stream has been closed.

    | Improve this Doc View Source

    GetEncodedLength(Byte[])

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

    Declaration
    public int GetEncodedLength(byte[] data)
    Parameters
    Type Name Description
    Byte[] data

    the string literal to be Huffman encoded

    Returns
    Type Description
    Int32

    the number of bytes required to Huffman encode

    data

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX