question

Upvotes
Accepted
301 14 33 39

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
588 14 21 19

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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