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)
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)
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)
def virtualaddress(target, **kwds): """Returns a pointer to /target/ where value is a va""" kwds.setdefault("__name__", "virtualaddress") return dyn.opointer(target, calculateRelativeAddress, **kwds)
def fileoffset(target, **kwds): """Returns a pointer to /target/ where value is a fileoffset""" kwds.setdefault("__name__", "fileoffset") return dyn.opointer(target, calculateRelativeOffset, **kwds)
def realaddress(target, **kwds): """Returns a pointer to /target/ where value is an rva""" kwds.setdefault("__name__", "realaddress") return dyn.opointer(target, calculateRealAddress, **kwds)