Convert-BER-XS

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    "BER_TYPE" to any "CLASS"/"TAG" combination tgo change how that tag is
    decoded or encoded.

    "BER_TYPE_BYTES"
        The raw octets of the value. This is the default type for unknown
        tags and de-/encodes the value as if it were an octet string, i.e.
        by copying the raw bytes.

    "BER_TYPE_UTF8"
        Like "BER_TYPE_BYTES", but decodes the value as if it were a UTF-8
        string (without validation!) and encodes a perl unicode string into
        a UTF-8 BER string.

    "BER_TYPE_UCS2"
        Similar to "BER_TYPE_UTF8", but treats the BER value as UCS-2
        encoded string.

    "BER_TYPE_UCS4"
        Similar to "BER_TYPE_UTF8", but treats the BER value as UCS-4
        encoded string.

XS.pm  view on Meta::CPAN


=item C<BER_TYPE_BYTES>

The raw octets of the value. This is the default type for unknown tags and
de-/encodes the value as if it were an octet string, i.e. by copying the
raw bytes.

=item C<BER_TYPE_UTF8>

Like C<BER_TYPE_BYTES>, but decodes the value as if it were a UTF-8 string
(without validation!) and encodes a perl unicode string into a UTF-8 BER
string.

=item C<BER_TYPE_UCS2>

Similar to C<BER_TYPE_UTF8>, but treats the BER value as UCS-2 encoded
string.

=item C<BER_TYPE_UCS4>

Similar to C<BER_TYPE_UTF8>, but treats the BER value as UCS-4 encoded



( run in 0.504 second using v1.01-cache-2.11-cpan-88abd93f124 )