11 posts / 0 new
Last post
Last seen: 4 years 5 months ago
Joined: 04/09/2019
Posts: 5
failed to create data sample from cdr buffer

Hi, I have this error  "Failed to create Foo from cdr buffer" when I implemented the code below. The struct Foo is written inside an IDL file. This only happens if there's sequence<> in the IDL file. Is this a known issue in RTI Connext DDS 5.3.1?

struct Foo{
    sequence<double, 1000> x;

int main(int argc, char* argv[]) {

2 posts / 0 new
Last post
Last seen: 8 years 7 months ago
Joined: 05/25/2014
Posts: 6
Serialization / Deserialization of a DDS data sample


How can I take advantage of RTI's APIs in order to convert a data sample object which I read using a DataReader into a byte array and vice versa (in Java)?

I would like to save the binary serialized object to file and then be able to read it again into object. 




5 posts / 0 new
Last post
Last seen: 10 years 2 months ago
Joined: 01/23/2014
Posts: 3
[RESOLVED] Cannot deserialize successfully

I have been working with some examples to serialize and then deserialize an object created via: ::create_data()

Subscribe to RSS - deserialize