Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
ada::idna::deflate::Huff Struct Reference

#include <raw_inflate.hpp>

Public Member Functions

bool build (const uint8_t *lens, int n)
int decode (BitReader &br) const
bool build (const uint8_t *lens, int n)
int decode (BitReader &br) const
bool build (const uint8_t *lens, int n)
int decode (BitReader &br) const

Public Attributes

uint8_t lengths [288] {}
int counts [MAXBITS+1] {}
int first_code [MAXBITS+1] {}
int16_t symbols [288] {}
int nsymbols = 0
int max_bits = 0
int base_idx [MAXBITS+1] {}

Static Public Attributes

static constexpr int MAXBITS = 15

Detailed Description

Definition at line 286 of file ada_idna.cpp.

Member Function Documentation

◆ build() [1/3]

bool ada::idna::deflate::Huff::build ( const uint8_t * lens,
int n )
inline

◆ build() [2/3]

bool ada::idna::deflate::Huff::build ( const uint8_t * lens,
int n )
inline

Definition at line 53 of file raw_inflate.hpp.

References base_idx, counts, first_code, lengths, max_bits, MAXBITS, nsymbols, and symbols.

◆ build() [3/3]

bool ada::idna::deflate::Huff::build ( const uint8_t * lens,
int n )
inline

Definition at line 300 of file ada_idna.cpp.

References base_idx, counts, first_code, lengths, max_bits, MAXBITS, nsymbols, and symbols.

◆ decode() [1/3]

int ada::idna::deflate::Huff::decode ( BitReader & br) const
inline

◆ decode() [2/3]

int ada::idna::deflate::Huff::decode ( BitReader & br) const
inline

Definition at line 85 of file raw_inflate.hpp.

References base_idx, counts, first_code, max_bits, and symbols.

◆ decode() [3/3]

int ada::idna::deflate::Huff::decode ( BitReader & br) const
inline

Definition at line 332 of file ada_idna.cpp.

References base_idx, counts, first_code, max_bits, and symbols.

Member Data Documentation

◆ base_idx

int ada::idna::deflate::Huff::base_idx {}

Definition at line 298 of file ada_idna.cpp.

Referenced by build(), and decode().

◆ counts

int ada::idna::deflate::Huff::counts {}

Definition at line 291 of file ada_idna.cpp.

Referenced by build(), decode(), and TEST().

◆ first_code

int ada::idna::deflate::Huff::first_code {}

Definition at line 292 of file ada_idna.cpp.

Referenced by build(), and decode().

◆ lengths

uint8_t ada::idna::deflate::Huff::lengths {}

Definition at line 290 of file ada_idna.cpp.

Referenced by build().

◆ max_bits

int ada::idna::deflate::Huff::max_bits = 0

Definition at line 295 of file ada_idna.cpp.

Referenced by build(), decode(), and TEST().

◆ MAXBITS

constexpr int ada::idna::deflate::Huff::MAXBITS = 15
staticconstexpr

Definition at line 289 of file ada_idna.cpp.

Referenced by build().

◆ nsymbols

int ada::idna::deflate::Huff::nsymbols = 0

Definition at line 294 of file ada_idna.cpp.

Referenced by build().

◆ symbols

int16_t ada::idna::deflate::Huff::symbols {}

Definition at line 293 of file ada_idna.cpp.

Referenced by build(), and decode().


The documentation for this struct was generated from the following files: