How do I change correctly to the memory directory?

Hello,

How do I change correctly to the memory directory?

Is “gDirectory = 0” what I am supposed to do?

Is there something like gMemory so that one could just do
gMemory->cd() ?

TDirectory::Cd(“Rint:/”); ?

Thank you!!!
Sergei.

gROOT->cd();

Rene