Skip to content

Commit

Permalink
Add some more documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurence Lundblade committed May 9, 2024
1 parent 1973875 commit 46b8e87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/qcbor/qcbor_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,13 @@ QCBORDecode_PeekNext(QCBORDecodeContext *pCtx, QCBORItem *pDecodedItem);
* outside of the array or map. The array or map must be exited before
* QCBORDecode_VGetNext() will decode it.
*
* In many cases the position returned will be in the middle of
* an array or map. It will not be possible to start decoding at
* that location with another instance of the decoder and go to
* the end. It is not valid CBOR. If the input is a CBOR sequence
* and the position is not in the moddle of an array or map
* then it is possible to decode to the end.
*
* There is no corresponding seek method because it is too complicated
* to restore the internal decoder state that tracks nesting.
*/
Expand Down

0 comments on commit 46b8e87

Please sign in to comment.