# This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.10
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.



from sys import version_info
if version_info >= (3,0,0):
    new_instancemethod = lambda func, inst, cls: _r_asm.SWIG_PyInstanceMethod_New(func)
else:
    from new import instancemethod as new_instancemethod
if version_info >= (2,6,0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_r_asm', [dirname(__file__)])
        except ImportError:
            import _r_asm
            return _r_asm
        if fp is not None:
            try:
                _mod = imp.load_module('_r_asm', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _r_asm = swig_import_helper()
    del swig_import_helper
else:
    import _r_asm
del version_info
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError(name)

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0


def _swig_setattr_nondynamic_method(set):
    def set_attr(self,name,value):
        if (name == "thisown"): return self.this.own(value)
        if hasattr(self,name) or (name == "this"):
            set(self,name,value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


class RAsm(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    bits = _swig_property(_r_asm.RAsm_bits_get, _r_asm.RAsm_bits_set)
    big_endian = _swig_property(_r_asm.RAsm_big_endian_get, _r_asm.RAsm_big_endian_set)
    syntax = _swig_property(_r_asm.RAsm_syntax_get, _r_asm.RAsm_syntax_set)
    pc = _swig_property(_r_asm.RAsm_pc_get, _r_asm.RAsm_pc_set)
    plugins = _swig_property(_r_asm.RAsm_plugins_get, _r_asm.RAsm_plugins_set)
    __swig_destroy__ = _r_asm.delete_RAsm
    def __init__(self): 
        _r_asm.RAsm_swiginit(self,_r_asm.new_RAsm())
RAsm.use = new_instancemethod(_r_asm.RAsm_use,None,RAsm)
RAsm.set_bits = new_instancemethod(_r_asm.RAsm_set_bits,None,RAsm)
RAsm.set_syntax = new_instancemethod(_r_asm.RAsm_set_syntax,None,RAsm)
RAsm.set_pc = new_instancemethod(_r_asm.RAsm_set_pc,None,RAsm)
RAsm.set_big_endian = new_instancemethod(_r_asm.RAsm_set_big_endian,None,RAsm)
RAsm.disassemble = new_instancemethod(_r_asm.RAsm_disassemble,None,RAsm)
RAsm.assemble = new_instancemethod(_r_asm.RAsm_assemble,None,RAsm)
RAsm.mdisassemble = new_instancemethod(_r_asm.RAsm_mdisassemble,None,RAsm)
RAsm.mdisassemble_hexstr = new_instancemethod(_r_asm.RAsm_mdisassemble_hexstr,None,RAsm)
RAsm.massemble = new_instancemethod(_r_asm.RAsm_massemble,None,RAsm)
RAsm.assemble_file = new_instancemethod(_r_asm.RAsm_assemble_file,None,RAsm)
RAsm.filter_input = new_instancemethod(_r_asm.RAsm_filter_input,None,RAsm)
RAsm.filter_output = new_instancemethod(_r_asm.RAsm_filter_output,None,RAsm)
RAsm.free = new_instancemethod(_r_asm.RAsm_free,None,RAsm)
RAsm_swigregister = _r_asm.RAsm_swigregister
RAsm_swigregister(RAsm)

class RAsmOp(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    inst_len = _swig_property(_r_asm.RAsmOp_inst_len_get, _r_asm.RAsmOp_inst_len_set)
    payload = _swig_property(_r_asm.RAsmOp_payload_get, _r_asm.RAsmOp_payload_set)
    buf = _swig_property(_r_asm.RAsmOp_buf_get, _r_asm.RAsmOp_buf_set)
    buf_asm = _swig_property(_r_asm.RAsmOp_buf_asm_get, _r_asm.RAsmOp_buf_asm_set)
    buf_hex = _swig_property(_r_asm.RAsmOp_buf_hex_get, _r_asm.RAsmOp_buf_hex_set)
    buf_err = _swig_property(_r_asm.RAsmOp_buf_err_get, _r_asm.RAsmOp_buf_err_set)
    def __init__(self): 
        _r_asm.RAsmOp_swiginit(self,_r_asm.new_RAsmOp())
    __swig_destroy__ = _r_asm.delete_RAsmOp
RAsmOp.get_hex = new_instancemethod(_r_asm.RAsmOp_get_hex,None,RAsmOp)
RAsmOp.get_asm = new_instancemethod(_r_asm.RAsmOp_get_asm,None,RAsmOp)
RAsmOp_swigregister = _r_asm.RAsmOp_swigregister
RAsmOp_swigregister(RAsmOp)

class RAsmCode(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    len = _swig_property(_r_asm.RAsmCode_len_get, _r_asm.RAsmCode_len_set)
    buf = _swig_property(_r_asm.RAsmCode_buf_get, _r_asm.RAsmCode_buf_set)
    buf_hex = _swig_property(_r_asm.RAsmCode_buf_hex_get, _r_asm.RAsmCode_buf_hex_set)
    buf_asm = _swig_property(_r_asm.RAsmCode_buf_asm_get, _r_asm.RAsmCode_buf_asm_set)
    __swig_destroy__ = _r_asm.delete_RAsmCode
    def __init__(self): 
        _r_asm.RAsmCode_swiginit(self,_r_asm.new_RAsmCode())
RAsmCode_swigregister = _r_asm.RAsmCode_swigregister
RAsmCode_swigregister(RAsmCode)

class RAsmPlugin(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    name = _swig_property(_r_asm.RAsmPlugin_name_get, _r_asm.RAsmPlugin_name_set)
    arch = _swig_property(_r_asm.RAsmPlugin_arch_get, _r_asm.RAsmPlugin_arch_set)
    desc = _swig_property(_r_asm.RAsmPlugin_desc_get, _r_asm.RAsmPlugin_desc_set)
    bits = _swig_property(_r_asm.RAsmPlugin_bits_get, _r_asm.RAsmPlugin_bits_set)
    def __init__(self): 
        _r_asm.RAsmPlugin_swiginit(self,_r_asm.new_RAsmPlugin())
    __swig_destroy__ = _r_asm.delete_RAsmPlugin
RAsmPlugin_swigregister = _r_asm.RAsmPlugin_swigregister
RAsmPlugin_swigregister(RAsmPlugin)

class RNum(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args): 
        _r_asm.RNum_swiginit(self,_r_asm.new_RNum(*args))
    __swig_destroy__ = _r_asm.delete_RNum
RNum.get = new_instancemethod(_r_asm.RNum_get,None,RNum)
RNum.math = new_instancemethod(_r_asm.RNum_math,None,RNum)
RNum_swigregister = _r_asm.RNum_swigregister
RNum_swigregister(RNum)

class RBuffer(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    buf = _swig_property(_r_asm.RBuffer_buf_get, _r_asm.RBuffer_buf_set)
    length = _swig_property(_r_asm.RBuffer_length_get, _r_asm.RBuffer_length_set)
    cur = _swig_property(_r_asm.RBuffer_cur_get, _r_asm.RBuffer_cur_set)
    base = _swig_property(_r_asm.RBuffer_base_get, _r_asm.RBuffer_base_set)
    __swig_destroy__ = _r_asm.delete_RBuffer
    def __init__(self): 
        _r_asm.RBuffer_swiginit(self,_r_asm.new_RBuffer())
RBuffer.read_at = new_instancemethod(_r_asm.RBuffer_read_at,None,RBuffer)
RBuffer.write_at = new_instancemethod(_r_asm.RBuffer_write_at,None,RBuffer)
RBuffer.set_bytes = new_instancemethod(_r_asm.RBuffer_set_bytes,None,RBuffer)
RBuffer_swigregister = _r_asm.RBuffer_swigregister
RBuffer_swigregister(RBuffer)

class RList(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    __swig_destroy__ = _r_asm.delete_RList
    def __init__(self): 
        _r_asm.RList_swiginit(self,_r_asm.new_RList())
RList.append = new_instancemethod(_r_asm.RList_append,None,RList)
RList.prepend = new_instancemethod(_r_asm.RList_prepend,None,RList)
RList.iterator = new_instancemethod(_r_asm.RList_iterator,None,RList)
RList.length = new_instancemethod(_r_asm.RList_length,None,RList)
RList.del_n = new_instancemethod(_r_asm.RList_del_n,None,RList)
RList.get_top = new_instancemethod(_r_asm.RList_get_top,None,RList)
RList.pop = new_instancemethod(_r_asm.RList_pop,None,RList)
RList_swigregister = _r_asm.RList_swigregister
RList_swigregister(RList)

class RListIter(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    data = _swig_property(_r_asm.RListIter_data_get, _r_asm.RListIter_data_set)
    n = _swig_property(_r_asm.RListIter_n_get, _r_asm.RListIter_n_set)
    p = _swig_property(_r_asm.RListIter_p_get, _r_asm.RListIter_p_set)
    __swig_destroy__ = _r_asm.delete_RListIter
    def __init__(self): 
        _r_asm.RListIter_swiginit(self,_r_asm.new_RListIter())
RListIter.get_data = new_instancemethod(_r_asm.RListIter_get_data,None,RListIter)
RListIter.get_next = new_instancemethod(_r_asm.RListIter_get_next,None,RListIter)
RListIter_swigregister = _r_asm.RListIter_swigregister
RListIter_swigregister(RListIter)

class RRange(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    __swig_destroy__ = _r_asm.delete_RRange
    def __init__(self, *args): 
        _r_asm.RRange_swiginit(self,_r_asm.new_RRange(*args))
RRange.item_get = new_instancemethod(_r_asm.RRange_item_get,None,RRange)
RRange.size = new_instancemethod(_r_asm.RRange_size,None,RRange)
RRange.add_from_string = new_instancemethod(_r_asm.RRange_add_from_string,None,RRange)
RRange.contains = new_instancemethod(_r_asm.RRange_contains,None,RRange)
RRange.sort = new_instancemethod(_r_asm.RRange_sort,None,RRange)
RRange.list = new_instancemethod(_r_asm.RRange_list,None,RRange)
RRange.get_n = new_instancemethod(_r_asm.RRange_get_n,None,RRange)
RRange.inverse = new_instancemethod(_r_asm.RRange_inverse,None,RRange)
RRange_swigregister = _r_asm.RRange_swigregister
RRange_swigregister(RRange)

class RRangeItem(object):
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    fr = _swig_property(_r_asm.RRangeItem_fr_get, _r_asm.RRangeItem_fr_set)
    to = _swig_property(_r_asm.RRangeItem_to_get, _r_asm.RRangeItem_to_set)
    data = _swig_property(_r_asm.RRangeItem_data_get, _r_asm.RRangeItem_data_set)
    datalen = _swig_property(_r_asm.RRangeItem_datalen_get, _r_asm.RRangeItem_datalen_set)
    def __init__(self): 
        _r_asm.RRangeItem_swiginit(self,_r_asm.new_RRangeItem())
    __swig_destroy__ = _r_asm.delete_RRangeItem
RRangeItem_swigregister = _r_asm.RRangeItem_swigregister
RRangeItem_swigregister(RRangeItem)


cvar = _r_asm.cvar
R2_VERSION = cvar.R2_VERSION
R2_PREFIX = cvar.R2_PREFIX
R2_LIBDIR = cvar.R2_LIBDIR

