rdata.pyi 665 B

1234567891011121314151617
  1. from typing import Dict, Tuple, Any, Optional
  2. from .name import Name
  3. class Rdata:
  4. def __init__(self):
  5. self.address : str
  6. def to_wire(self, file, compress : Optional[Dict[Name,int]], origin : Optional[Name]) -> bytes:
  7. ...
  8. @classmethod
  9. def from_text(cls, rdclass : int, rdtype : int, tok, origin=None, relativize=True):
  10. ...
  11. _rdata_modules : Dict[Tuple[Any,Rdata],Any]
  12. def from_text(rdclass : int, rdtype : int, tok : Optional[str], origin : Optional[Name] = None, relativize : bool = True):
  13. ...
  14. def from_wire(rdclass : int, rdtype : int, wire : bytes, current : int, rdlen : int, origin : Optional[Name] = None):
  15. ...