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

Method __init__

scapy/contrib/http2.py:1175–1179  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

1173 i += 1
1174
1175 def __init__(self, s):
1176 # type: (str) -> None
1177 self._s = s
1178 i, ibl = type(self).huffman_encode(s)
1179 self._encoded = type(self).huffman_conv2str(i, ibl)
1180
1181 def __str__(self):
1182 # type: () -> str

Callers

nothing calls this directly

Calls 2

huffman_encodeMethod · 0.80
huffman_conv2strMethod · 0.80

Tested by

no test coverage detected