question

Upvotes
Accepted
301 6 17 27

Error decoding a FieldList's FieldEntry

Can someone please can help? I have a question below. I am encoding a message with following types, a refresh message embedded with element list of field list. When I encode a field entry with string, I get an error when I try to decode the message. The code fails on a call to rsslDecodeFieldEntry.

elektronrefinitiv-realtimeelektron-sdktrepfieldsiteration
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
588 8 13 16

When decoding the field list’s entries, use the same iterator you used to decode the field list:

if( ( ret = rsslDecodeFieldList(&decIterFieldlist, &fieldList, 0 ) ) == RSSL_RET_SUCCESS  )
{   
    RsslFieldEntry rsslFieldEntry ;
    ret =   rsslDecodeFieldEntry( &decIterFieldlist, &rsslFieldEntry );
}

You can also perform encoding and decoding of multiple levels of data with a single iterator, if you wish. For an example, see the rsslEncDecExample application included in UPA releases.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea