ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/XS.pm
(Generate patch)

Comparing CBOR-XS/XS.pm (file contents):
Revision 1.85 by root, Thu Nov 4 16:49:35 2021 UTC vs.
Revision 1.86 by root, Wed Aug 3 12:28:32 2022 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines