docs: def readfmt(self, fmt):
          """Read a specified object, using a struct format string."""
          size = struct.calcsize(fmt)
          blob = self.read(size)
          obj, = struct.unpack(fmt, blob)
          return obj