int SWShadowSizeFromObj(int obj)

          Get size of software shadow object, before you allocate the memory for your software shadow object.

 

Result:

Size of  shadow object in bytes. Or -1, if there was error.