… | |
… | |
66 | |
66 | |
67 | package CBOR::XS; |
67 | package CBOR::XS; |
68 | |
68 | |
69 | use common::sense; |
69 | use common::sense; |
70 | |
70 | |
71 | our $VERSION = 0.07; |
71 | our $VERSION = 0.08; |
72 | our @ISA = qw(Exporter); |
72 | our @ISA = qw(Exporter); |
73 | |
73 | |
74 | our @EXPORT = qw(encode_cbor decode_cbor); |
74 | our @EXPORT = qw(encode_cbor decode_cbor); |
75 | |
75 | |
76 | use Exporter; |
76 | use Exporter; |
… | |
… | |
455 | =head1 MAGIC HEADER |
455 | =head1 MAGIC HEADER |
456 | |
456 | |
457 | There is no way to distinguish CBOR from other formats |
457 | There is no way to distinguish CBOR from other formats |
458 | programmatically. To make it easier to distinguish CBOR from other |
458 | programmatically. To make it easier to distinguish CBOR from other |
459 | formats, the CBOR specification has a special "magic string" that can be |
459 | formats, the CBOR specification has a special "magic string" that can be |
460 | prepended to any CBOR string without changing it's meaning. |
460 | prepended to any CBOR string without changing its meaning. |
461 | |
461 | |
462 | This string is available as C<$CBOR::XS::MAGIC>. This module does not |
462 | This string is available as C<$CBOR::XS::MAGIC>. This module does not |
463 | prepend this string tot he CBOR data it generates, but it will ignroe it |
463 | prepend this string to the CBOR data it generates, but it will ignore it |
464 | if present, so users can prepend this string as a "file type" indicator as |
464 | if present, so users can prepend this string as a "file type" indicator as |
465 | required. |
465 | required. |
466 | |
466 | |
467 | |
467 | |
468 | =head1 THE CBOR::XS::Tagged CLASS |
468 | =head1 THE CBOR::XS::Tagged CLASS |