CBOR-PP
view release on metacpan or search on metacpan
lib/CBOR/PP/Encode.pm view on Meta::CPAN
2425262728293031323334353637383940414243=item * Scalars that look like unsigned integers are encoded as such.
UTF-8 strings and strings that fit 7-bit ASCII (including floats and
negatives) are encoded as text. Any other scalar is encoded as binary.
Note that there is no “right way†to determine whether an arbitrary
Perl (non-reference) scalar should be encoded as a string or as a number.
The above seems a reasonable enough approach.
=item * UTF8-flagged strings are encoded as text; others are encoded as
binary. This is a “best-guess†merely; Perl’s UTF8 flag doesn’t reliably
indicate whether a given string is a text or a byte string.
=item * undef, Types::Serialiser::true(), and Types::Serialiser::false()
are encoded as null, true, and false, respectively.
=item * There is no support for streamed (i.e., indefinite-length)
objects.
=item * There is no Perl value that maps to CBOR’s undefined value.
( run in 0.266 second using v1.01-cache-2.11-cpan-26ccb49234f )