Ejemplo n.º 1
0
def virtualaddress(target, **kwds):
    """Returns a pointer to /target/ where value is a va"""
    kwds.setdefault('__name__', 'virtualaddress')
    if 'type' in kwds:
        return dyn.opointer(target, CalculateRelativeAddress, kwds.pop('type'),
                            **kwds)
    return dyn.opointer(target, CalculateRelativeAddress, **kwds)
Ejemplo n.º 2
0
def fileoffset(target, **kwds):
    """Returns a pointer to /target/ where value is a fileoffset"""
    kwds.setdefault('__name__', 'fileoffset')
    if 'type' in kwds:
        return dyn.opointer(target, CalculateRelativeOffset, kwds.pop('type'),
                            **kwds)
    return dyn.opointer(target, CalculateRelativeOffset, **kwds)
Ejemplo n.º 3
0
def realaddress(target, **kwds):
    """Returns a pointer to /target/ where value is an rva"""
    kwds.setdefault('__name__', 'realaddress')
    if 'type' in kwds:
        return dyn.opointer(target, calculateRealAddress, kwds.pop('type'), **kwds)
    return dyn.opointer(target, calculateRealAddress, **kwds)
Ejemplo n.º 4
0
def virtualaddress(target, **kwds):
    """Returns a pointer to /target/ where value is a va"""
    kwds.setdefault("__name__", "virtualaddress")
    return dyn.opointer(target, calculateRelativeAddress, **kwds)
Ejemplo n.º 5
0
def fileoffset(target, **kwds):
    """Returns a pointer to /target/ where value is a fileoffset"""
    kwds.setdefault("__name__", "fileoffset")
    return dyn.opointer(target, calculateRelativeOffset, **kwds)
Ejemplo n.º 6
0
def realaddress(target, **kwds):
    """Returns a pointer to /target/ where value is an rva"""
    kwds.setdefault("__name__", "realaddress")
    return dyn.opointer(target, calculateRealAddress, **kwds)
Ejemplo n.º 7
0
def virtualaddress(target, **kwds):
    """Returns a pointer to /target/ where value is a va"""
    kwds.setdefault('__name__', 'virtualaddress')
    if 'type' in kwds:
        return dyn.opointer(target, CalculateRelativeAddress, kwds.pop('type'), **kwds)
    return dyn.opointer(target, CalculateRelativeAddress, **kwds)
Ejemplo n.º 8
0
def fileoffset(target, **kwds):
    """Returns a pointer to /target/ where value is a fileoffset"""
    kwds.setdefault('__name__', 'fileoffset')
    if 'type' in kwds:
        return dyn.opointer(target, CalculateRelativeOffset, kwds.pop('type'), **kwds)
    return dyn.opointer(target, CalculateRelativeOffset, **kwds)