(self, reg_offset)
return 1
Get the size of a register.

        :param int reg_offset: Offset of the register.
        :return: Size in bytes.
        :rtype: int
Get the size of a register.
Get the size of a register .
def _get_register_size(self, reg_offset):
        """
        Get the size of a register.

        :param int reg_offset: Offset of the register.
        :return: Size in bytes.
        :rtype: int
        """

        # TODO: support registers that are not aligned
        if reg_offset in self.project.arch.register_names:
            reg_name = self.project.arch.register_names[reg_offset]
            reg_size = self.project.arch.registers[reg_name][1]
            return reg_size

        l.warning("_get_register_size(): unsupported register offset %d. Assum size 1. "
                  "More register name mappings should be implemented in archinfo.", reg_offset)
        return 1
def _get_register_size ( self , reg_offset ) : # TODO: support registers that are not aligned if reg_offset in self . project . arch . register_names : reg_name = self . project . arch . register_names [ reg_offset ] reg_size = self . project . arch . registers [ reg_name ] [ 1 ] return reg_size l . warning ( "_get_register_size(): unsupported register offset %d. Assum size 1. " "More register name mappings should be implemented in archinfo." , reg_offset ) return 1