Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there any limitation on ARRAY sizes that CBOR can decode?

ANSWERED

I want to create an array of CBOR objects, and get them decoded at companion. After some tests, it seems that the CBOR library only supports TAG 0x98 + [1-byte array length]. I wonder if there is any limitation on this array length, OR, any length from 0 to 255 will be fine for the library.

 

Thank you!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Just as an update, it looks like it's based on determinate length encoding. So the length can be 8 bytes, or uint64

View best answer in original post

Best Answer
0 Votes
3 REPLIES 3

I'm not sure of the limitations here, so if you've succeeded then I'd just go with that!

Best Answer
0 Votes

Just as an update, it looks like it's based on determinate length encoding. So the length can be 8 bytes, or uint64

Best Answer
0 Votes

It seems 255 is working fine with my test. Thank you very much!

Best Answer
0 Votes