#NEWLINE# @ classmethod #NEWLINE# def parser( cls , buf ) : #NEWLINE# #INDENT# rest = buf [ cls . _VALUE_PACK_LEN : ] #NEWLINE# buf = buf [ : cls . _VALUE_PACK_LEN ] #NEWLINE# ( type_ , length , flags , mt_id , algorithm , _pad , range_size , _pad , index ) = struct . unpack_from ( cls . _VALUE_PACK_STR , buf ) #NEWLINE# return ( cls ( type_ , length , flags , mt_id , algorithm , range_size , index ) , rest )