def get_type_size(self, type):
typeobj = self.get_type(type)<EOL>if hasattr(typeobj, '<STR_LIT:size>'):<EOL><INDENT>return typeobj.size()<EOL><DEDENT>return <NUM_LIT:0><EOL>
Get the size of this type for converting a hex string to the
type. Return 0 if the size is not known.