MCPcopy Create free account
hub / github.com/secdev/scapy / HPackZString

Class HPackZString

scapy/contrib/http2.py:731–1191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729
730
731class HPackZString(HPackStringsInterface):
732 __slots__ = ['_s', '_encoded']
733
734 # From RFC 7541
735 # Tuple is (code,code bitlength)
736 # The bitlength is required to know how long the left padding
737 # (implicit 0's) there are
738 static_huffman_code = [
739 (0x1ff8, 13),
740 (0x7fffd8, 23),
741 (0xfffffe2, 28),
742 (0xfffffe3, 28),
743 (0xfffffe4, 28),
744 (0xfffffe5, 28),
745 (0xfffffe6, 28),
746 (0xfffffe7, 28),
747 (0xfffffe8, 28),
748 (0xffffea, 24),
749 (0x3ffffffc, 30),
750 (0xfffffe9, 28),
751 (0xfffffea, 28),
752 (0x3ffffffd, 30),
753 (0xfffffeb, 28),
754 (0xfffffec, 28),
755 (0xfffffed, 28),
756 (0xfffffee, 28),
757 (0xfffffef, 28),
758 (0xffffff0, 28),
759 (0xffffff1, 28),
760 (0xffffff2, 28),
761 (0x3ffffffe, 30),
762 (0xffffff3, 28),
763 (0xffffff4, 28),
764 (0xffffff5, 28),
765 (0xffffff6, 28),
766 (0xffffff7, 28),
767 (0xffffff8, 28),
768 (0xffffff9, 28),
769 (0xffffffa, 28),
770 (0xffffffb, 28),
771 (0x14, 6),
772 (0x3f8, 10),
773 (0x3f9, 10),
774 (0xffa, 12),
775 (0x1ff9, 13),
776 (0x15, 6),
777 (0xf8, 8),
778 (0x7fa, 11),
779 (0x3fa, 10),
780 (0x3fb, 10),
781 (0xf9, 8),
782 (0x7fb, 11),
783 (0xfa, 8),
784 (0x16, 6),
785 (0x17, 6),
786 (0x18, 6),
787 (0x0, 5),
788 (0x1, 5),

Callers 2

_parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…