… | |
… | |
473 | Perl data structure in memory at one time, it does allow you to parse a |
473 | Perl data structure in memory at one time, it does allow you to parse a |
474 | CBOR stream incrementally, using a similar to using "decode_prefix" to see |
474 | CBOR stream incrementally, using a similar to using "decode_prefix" to see |
475 | if a full CBOR object is available, but is much more efficient. |
475 | if a full CBOR object is available, but is much more efficient. |
476 | |
476 | |
477 | It basically works by parsing as much of a CBOR string as possible - if |
477 | It basically works by parsing as much of a CBOR string as possible - if |
478 | the CBOR data is not complete yet, the pasrer will remember where it was, |
478 | the CBOR data is not complete yet, the parser will remember where it was, |
479 | to be able to restart when more data has been accumulated. Once enough |
479 | to be able to restart when more data has been accumulated. Once enough |
480 | data is available to either decode a complete CBOR value or raise an |
480 | data is available to either decode a complete CBOR value or raise an |
481 | error, a real decode will be attempted. |
481 | error, a real decode will be attempted. |
482 | |
482 | |
483 | A typical use case would be a network protocol that consists of sending |
483 | A typical use case would be a network protocol that consists of sending |