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

Classes

struct  BitReader
struct  Huff

Functions

Huff make_fixed_litlen_huff ()
Huff make_fixed_dist_huff ()
int fixed_litlen (BitReader &br)
int fixed_dist (BitReader &br)
size_t inflate_raw (const uint8_t *src, size_t src_len, uint8_t *dst, size_t dst_cap)

Variables

const Huff kFixedLitLenHuff = make_fixed_litlen_huff()
const Huff kFixedDistHuff = make_fixed_dist_huff()
static const uint16_t len_base [29]
static const uint8_t len_extra [29]
static const uint16_t dist_base [30]
static const uint8_t dist_extra [30]
static const uint16_t len_base [29]
static const uint8_t len_extra [29]
static const uint16_t dist_base [30]
static const uint8_t dist_extra [30]
static const uint16_t len_base [29]
static const uint8_t len_extra [29]
static const uint16_t dist_base [30]
static const uint8_t dist_extra [30]

Function Documentation

◆ fixed_dist()

int ada::idna::deflate::fixed_dist ( BitReader & br)
inline

Definition at line 378 of file ada_idna.cpp.

References kFixedDistHuff.

Referenced by inflate_raw().

◆ fixed_litlen()

int ada::idna::deflate::fixed_litlen ( BitReader & br)
inline

Definition at line 376 of file ada_idna.cpp.

References kFixedLitLenHuff.

Referenced by inflate_raw().

◆ inflate_raw()

◆ make_fixed_dist_huff()

Huff ada::idna::deflate::make_fixed_dist_huff ( )
inline

Definition at line 363 of file ada_idna.cpp.

References ada::idna::deflate::Huff::build().

◆ make_fixed_litlen_huff()

Huff ada::idna::deflate::make_fixed_litlen_huff ( )
inline

Definition at line 351 of file ada_idna.cpp.

References ada::idna::deflate::Huff::build().

Variable Documentation

◆ dist_base [1/3]

const uint16_t ada::idna::deflate::dist_base[30]
static
Initial value:
= {
1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
33, 49, 65, 97, 129, 193, 257, 385, 513, 769,
1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}

Definition at line 387 of file ada_idna.cpp.

Referenced by inflate_raw().

◆ dist_base [2/3]

const uint16_t ada::idna::deflate::dist_base[30]
static
Initial value:
= {
1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
33, 49, 65, 97, 129, 193, 257, 385, 513, 769,
1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}

Definition at line 140 of file raw_inflate.hpp.

◆ dist_base [3/3]

const uint16_t ada::idna::deflate::dist_base[30]
static
Initial value:
= {
1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
33, 49, 65, 97, 129, 193, 257, 385, 513, 769,
1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577}

Definition at line 387 of file ada_idna.cpp.

◆ dist_extra [1/3]

const uint8_t ada::idna::deflate::dist_extra[30]
static
Initial value:
= {0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
9, 9, 10, 10, 11, 11, 12, 12, 13, 13}

Definition at line 391 of file ada_idna.cpp.

Referenced by inflate_raw().

◆ dist_extra [2/3]

const uint8_t ada::idna::deflate::dist_extra[30]
static
Initial value:
= {0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
9, 9, 10, 10, 11, 11, 12, 12, 13, 13}

Definition at line 144 of file raw_inflate.hpp.

◆ dist_extra [3/3]

const uint8_t ada::idna::deflate::dist_extra[30]
static
Initial value:
= {0, 0, 0, 0, 1, 1, 2, 2, 3, 3,
4, 4, 5, 5, 6, 6, 7, 7, 8, 8,
9, 9, 10, 10, 11, 11, 12, 12, 13, 13}

Definition at line 391 of file ada_idna.cpp.

◆ kFixedDistHuff

const Huff ada::idna::deflate::kFixedDistHuff = make_fixed_dist_huff()
inline

Definition at line 374 of file ada_idna.cpp.

Referenced by fixed_dist().

◆ kFixedLitLenHuff

const Huff ada::idna::deflate::kFixedLitLenHuff = make_fixed_litlen_huff()
inline

Definition at line 372 of file ada_idna.cpp.

Referenced by fixed_litlen().

◆ len_base [1/3]

const uint16_t ada::idna::deflate::len_base[29]
static
Initial value:
= {
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27,
31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}

Definition at line 381 of file ada_idna.cpp.

Referenced by inflate_raw().

◆ len_base [2/3]

const uint16_t ada::idna::deflate::len_base[29]
static
Initial value:
= {
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27,
31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}

Definition at line 134 of file raw_inflate.hpp.

◆ len_base [3/3]

const uint16_t ada::idna::deflate::len_base[29]
static
Initial value:
= {
3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27,
31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258}

Definition at line 381 of file ada_idna.cpp.

◆ len_extra [1/3]

const uint8_t ada::idna::deflate::len_extra[29]
static
Initial value:
= {0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 0}

Definition at line 384 of file ada_idna.cpp.

Referenced by inflate_raw().

◆ len_extra [2/3]

const uint8_t ada::idna::deflate::len_extra[29]
static
Initial value:
= {0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 0}

Definition at line 137 of file raw_inflate.hpp.

◆ len_extra [3/3]

const uint8_t ada::idna::deflate::len_extra[29]
static
Initial value:
= {0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 2, 2, 2, 2, 3, 3, 3, 3,
4, 4, 4, 4, 5, 5, 5, 5, 0}

Definition at line 384 of file ada_idna.cpp.