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.69 by root, Sat Nov 9 07:23:31 2019 UTC vs.
Revision 1.70 by root, Sat Nov 9 07:30:36 2019 UTC

453when there is trailing garbage after the CBOR string, it will silently 453when there is trailing garbage after the CBOR string, it will silently
454stop parsing there and return the number of characters consumed so far. 454stop parsing there and return the number of characters consumed so far.
455 455
456This is useful if your CBOR texts are not delimited by an outer protocol 456This is useful if your CBOR texts are not delimited by an outer protocol
457and you need to know where the first CBOR string ends amd the next one 457and you need to know where the first CBOR string ends amd the next one
458starts. 458starts - CBOR strings are self-delimited, so it is possible to concatenate
459CBOR strings without any delimiters or size fields and recover their data.
459 460
460 CBOR::XS->new->decode_prefix ("......") 461 CBOR::XS->new->decode_prefix ("......")
461 => ("...", 3) 462 => ("...", 3)
462 463
463=back 464=back

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines