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

Comparing CBOR-XS/doc/value-sharing.pod (file contents):
Revision 1.3 by root, Thu Nov 28 10:39:06 2013 UTC vs.
Revision 1.4 by root, Fri Nov 25 06:14:14 2016 UTC

138The following cyclic Perl data structure references itself from within 138The following cyclic Perl data structure references itself from within
139itself. Here a decoder will see a reference to the shared value I<before> 139itself. Here a decoder will see a reference to the shared value I<before>
140it has completely decoded the shared value: 140it has completely decoded the shared value:
141 141
142 $data = []; 142 $data = [];
143 $data->[0] = $data; # make the first array eleemnt refer to the array 143 $data->[0] = $data; # make the first array element refer to the array
144 144
145This data structure is not representable in standard CBOR. Using the value 145This data structure is not representable in standard CBOR. Using the value
146sharing extension, it can be encoded as follows: 146sharing extension, it can be encoded as follows:
147 147
148 28([29(0)]) 148 28([29(0)])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines