MCPcopy Create free account
hub / github.com/avicoder/spoodle / DNSBuffer

Class DNSBuffer

dnslib/label.py:141–288  ·  view source on GitHub ↗

Extends Buffer to provide DNS name encoding/decoding (with caching) # Needed for Python 2/3 doctest compatibility >>> def p(s): ... if not isinstance(s,str): ... return s.decode() ... return s >>> b = DNSBuffer() >>> b.encode_name(b'aaa.bbb.ccc.')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

parseMethod · 0.90
packMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected