I'm using DDS to buffer data between modules in software I'm working on. I'm new to the whole DDS thing, but one of the things I need to do is to access the data in a sequence<octect,1024>
and pass it to a function as a array<double>
.
I know that I can access the data using the sequence.get_contiguous_buffer()
(docs) function, but this returns an array of type DDS_Octet
(docs). How can I make this passable to my function (i.e. turn it into a primitive array)?
NOTE: The function can take any primitive, not just double; that's just what I'm using.