… | |
… | |
637 | Forces the value to be encoded as (UTF-8) text values. |
637 | Forces the value to be encoded as (UTF-8) text values. |
638 | |
638 | |
639 | CBOR::XS::as_bytes $value |
639 | CBOR::XS::as_bytes $value |
640 | Forces the value to be encoded as a (binary) string value. |
640 | Forces the value to be encoded as a (binary) string value. |
641 | |
641 | |
|
|
642 | CBOR::XS::as_bool $value |
|
|
643 | Converts a Perl boolean (which can be any kind of scalar) into a |
|
|
644 | CBOR boolean. Strictly the same, but shorter to write, than: |
|
|
645 | |
|
|
646 | $value ? Types::Serialiser::true : Types::Serialiser::false |
|
|
647 | |
642 | CBOR::XS::as_float16 $value |
648 | CBOR::XS::as_float16 $value |
643 | Forces half-float (IEEE 754 binary16) encoding of the given value. |
649 | Forces half-float (IEEE 754 binary16) encoding of the given value. |
644 | |
650 | |
645 | CBOR::XS::as_float32 $value |
651 | CBOR::XS::as_float32 $value |
646 | Forces single-float (IEEE 754 binary32) encoding of the given value. |
652 | Forces single-float (IEEE 754 binary32) encoding of the given value. |