(self, origin: Optional["dns.name.Name"] = None)
| 61 | return struct.unpack(format, self.get_bytes(struct.calcsize(format))) |
| 62 | |
| 63 | def get_name(self, origin: Optional["dns.name.Name"] = None) -> "dns.name.Name": |
| 64 | name = dns.name.from_wire_parser(self) |
| 65 | if origin: |
| 66 | name = name.relativize(origin) |
| 67 | return name |
| 68 | |
| 69 | def seek(self, where: int) -> None: |
| 70 | # Note that seeking to the end is OK! (If you try to read |