Using TKey to tell whether ReadObj would be successful

If I read a TKey object from a file, is there a way to use TKey
to determine whether the ReadObj call would be successful?
That is, without actually calling ReadObj() .

Thanks

No way via TKey functions directly without doing a ReadObj.
If the read is going to fail, this can only be detected by reading directly.
If your TKey object jas been overwritten (unlikely) you can check
via TKey::GetNbytes, TKey::GetSeekKey that your object is within the file size (using TFile::GetEND).

Rene