[omniORB] the data in an Any

David Riddoch djr@uk.research.att.com
Fri, 25 Feb 2000 17:32:23 +0000 (GMT)


Hi,


There is no way to get a pointer to the data inside an Any (not even an
omniORB specific one!).  However you can get at the raw data by copying it
out, as described in the following message:

  http://www.uk.research.att.com/omniORB/archives/1999-04/0104.html


Cheers,
David



On Fri, 25 Feb 2000, David Byron wrote:

> I know there have been many messages in the past about serializing an Any and I want to do something similar but I can't find any discussion of it.  I'm using a slightly modified omniORB 2.6.1.
> 
> What I need is a pointer to just the data portion of an Any, and an accessor to the length -- not the typecode, just the data.  I'm going to use that pointer to access the data in the Any, and to replace the existing data with new data.
> 
> I realize this is not a pleasant operation and I am trying to find another way of dealing with it but as it is now, this is what I need to do.
> 
> Can one of you give me a hand with this?  I've looked at the value(), NP_length(), and replace() functions but I think they're including the typecode information.