It’s not really a direct transfer of energy like your battery or AC wall unit to your phone, or a direct download.
But, Jimmy Jam articulated it quite well with the word “absorption.”
As a direct consequence of relationship, we are influenced more or less by the qualities of what we are relating to, and we walk away from it, in some way impregnated by its nature or qualities on some level.
It really depends on how open you are. If your personality and makeup energetically is porous like a sponge, (sensitive nature) you will absorb a lot of her, good or bad vibes, that will resonate in you for a long time until it subsides into a mere memory, that you can reactivate at any time.
If your system is far less porous than a sponge, say hardwood, or even steel, you repel most of her, and you go about your business of enjoying what sexuality she offers and using her basically as friction, as a vehicle to accept your orgasm.
You can be pretty much divorced and unaware of her and repel her, and you consciously absorb far less and you remain relatively unaffected either way of any lingering residual good or bad energy that she possessed.
Tantra is a practice of super-absorption.
(Tantrics like to absorb pure female energy essence from their partner and hold it in their own system and relate to it and allow it to resonate in them, long after the sexual encounter. For them, ejaculation is often avoided as they used the female to enjoy her abundant energy and they do not want to lose their powerful male essence or energy)
Successful marriage is basically finding a partner whose energy is harmonious enough with your energy, that it does not grate against you. And, you can peacefully coexist.
But, beyond all this activity of male and female energy, remains “you” who observes it all and remains absolutely unaffected by any and all vibrations.