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.25 by root, Thu Nov 28 12:08:07 2013 UTC vs.
Revision 1.26 by root, Thu Nov 28 12:11:06 2013 UTC

191sharing extension. This also makes it possible to encode cyclic data 191sharing extension. This also makes it possible to encode cyclic data
192structures. 192structures.
193 193
194It is recommended to leave it off unless you know your 194It is recommended to leave it off unless you know your
195communication partner supports the value sharing extensions to CBOR 195communication partner supports the value sharing extensions to CBOR
196(http://cbor.schmorp.de/value-sharing), as without decoder support, the 196(L<http://cbor.schmorp.de/value-sharing>), as without decoder support, the
197resulting data structure might be unusable. 197resulting data structure might be unusable.
198 198
199Detecting shared values incurs a runtime overhead when values are encoded 199Detecting shared values incurs a runtime overhead when values are encoded
200that have a reference counter large than one, and might unnecessarily 200that have a reference counter large than one, and might unnecessarily
201increase the encoded size, as potentially shared values are encode as 201increase the encoded size, as potentially shared values are encode as
224also results in a very large runtime overhead (expect encoding times to be 224also results in a very large runtime overhead (expect encoding times to be
2252-4 times as high as without). 2252-4 times as high as without).
226 226
227It is recommended to leave it off unless you know your 227It is recommended to leave it off unless you know your
228communications partner supports the stringref extension to CBOR 228communications partner supports the stringref extension to CBOR
229(http://cbor.schmorp.de/stringref), as without decoder support, the 229(L<http://cbor.schmorp.de/stringref>), as without decoder support, the
230resulting data structure might not be usable. 230resulting data structure might not be usable.
231 231
232If C<$enable> is false (the default), then C<encode> will encode strings 232If C<$enable> is false (the default), then C<encode> will encode strings
233the standard CBOR way. 233the standard CBOR way.
234 234
679These tags are always handled when decoding, and their handling cannot be 679These tags are always handled when decoding, and their handling cannot be
680overriden by the user. 680overriden by the user.
681 681
682=over 4 682=over 4
683 683
684=item <unassigned> (perl-object, L<http://cbor.schmorp.de/perl-object>) 684=item 26 (perl-object, L<http://cbor.schmorp.de/perl-object>)
685 685
686These tags are automatically created (and decoded) for serialisable 686These tags are automatically created (and decoded) for serialisable
687objects using the C<FREEZE/THAW> methods (the L<Types::Serialier> object 687objects using the C<FREEZE/THAW> methods (the L<Types::Serialier> object
688serialisation protocol). See L<OBJECT SERIALISATION> for details. 688serialisation protocol). See L<OBJECT SERIALISATION> for details.
689 689
690=item <unassigned>, <unassigned> (sharable, sharedref, L <http://cbor.schmorp.de/value-sharing>) 690=item 28, 29 (sharable, sharedref, L <http://cbor.schmorp.de/value-sharing>)
691 691
692These tags are automatically decoded when encountered, resulting in 692These tags are automatically decoded when encountered, resulting in
693shared values in the decoded object. They are only encoded, however, when 693shared values in the decoded object. They are only encoded, however, when
694C<allow_sharable> is enabled. 694C<allow_sharable> is enabled.
695 695
696=item <unassigned>, <unassigned> (stringref-namespace, stringref, L <http://cbor.schmorp.de/stringref>) 696=item 256, 25 (stringref-namespace, stringref, L <http://cbor.schmorp.de/stringref>)
697 697
698These tags are automatically decoded when encountered. They are only 698These tags are automatically decoded when encountered. They are only
699encoded, however, when C<pack_strings> is enabled. 699encoded, however, when C<pack_strings> is enabled.
700 700
701=item 22098 (indirection, L<http://cbor.schmorp.de/indirection>) 701=item 22098 (indirection, L<http://cbor.schmorp.de/indirection>)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines