in reply to Reconstructing an (SV *) when you know the address and the precise structure of the said SV

Can you cast ptr as a (void **) instead? This will prevent "helpful" attempts to understand the data. You seem to be wanting:

SV *val = **((void **)(ptr)); sv_dump(val);

(The contents of the memory location specified by the contents of the memory location stored in ptr is a pointer to an SV)

Or have I completely missed your question?


Remember, when you stare long into the abyss, you could have been home eating ice cream.
  • Comment on Re: Reconstructing an (SV *) when you know the address and the precise structure of the said SV
  • Download Code