(cls,buffer,length)
Unpack from buffer
Unpack from buffer
Unpack from buffer
def parse(cls,buffer,length):
        """
            Unpack from buffer
        """
        try:
            data = buffer.get(length)
            return cls(data)
        except (BufferError,BimapError) as e:
            raise DNSError("Error unpacking RD [offset=%d]: %s" % 
                                    (buffer.offset,e))
def parse ( cls , buffer , length ) : try : data = buffer . get ( length ) return cls ( data ) except ( BufferError , BimapError ) as e : raise DNSError ( "Error unpacking RD [offset=%d]: %s" % ( buffer . offset , e ) )