(cls,buffer)
Implements parse interface
Implements parse interface
Implements parse interface
def parse(cls,buffer):
        """
            Implements parse interface 
        """
        try:
            (id,bitmap,q,a,auth,ar) = buffer.unpack("!HHHHHH")
            return cls(id,bitmap,q,a,auth,ar)
        except (BufferError,BimapError) as e:
            raise DNSError("Error unpacking DNSHeader [offset=%d]: %s" % (
                                buffer.offset,e))
def parse ( cls , buffer ) : try : ( id , bitmap , q , a , auth , ar ) = buffer . unpack ( "!HHHHHH" ) return cls ( id , bitmap , q , a , auth , ar ) except ( BufferError , BimapError ) as e : raise DNSError ( "Error unpacking DNSHeader [offset=%d]: %s" % ( buffer . offset , e ) )