MCPcopy Index your code
hub / github.com/secdev/scapy / i2h

Method i2h

scapy/fields.py:1493–1495  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

1491 return plain_str(x).encode('utf-16-le', errors="replace")
1492
1493 def i2h(self, pkt, x):
1494 # type: (Optional[Packet], bytes) -> str
1495 return bytes_encode(x).decode('utf-16-le', errors="replace")
1496
1497
1498class _StrEnumField:

Callers 1

i2reprMethod · 0.95

Calls 2

bytes_encodeFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected