Struct hpack::huffman::HuffmanDecoder [−][src]
pub struct HuffmanDecoder { /* fields omitted */ }A simple implementation of a Huffman code decoder.
Methods
impl HuffmanDecoder[src]
impl HuffmanDecoderpub fn new() -> HuffmanDecoder[src]
pub fn new() -> HuffmanDecoderConstructs a new HuffmanDecoder with the default Huffman code table, as defined in the HPACK-draft-10, Appendix B.
pub fn decode(&mut self, buf: &[u8]) -> HuffmanDecoderResult[src]
pub fn decode(&mut self, buf: &[u8]) -> HuffmanDecoderResultDecodes the buffer buf into a newly allocated Vec.
It assumes that the entire buffer should be considered as the Huffman encoding of an octet string and handles the padding rules accordingly.
Auto Trait Implementations
impl Send for HuffmanDecoder
impl Send for HuffmanDecoderimpl Sync for HuffmanDecoder
impl Sync for HuffmanDecoder