Faster conversions to/from Bencode format

Edit Package perl-Convert-Bencode_XS
http://search.cpan.org/dist/Convert-Bencode_XS/

* bencode($stuff)

Returns a bencoded string representing what's in $stuff. $stuff can be
either a scalar, an array reference or a hash reference. Every nesting of
these data structures is allowed, other ones will croak.

* bdecode($bencoded)

Returns a Perl data structure: it could be either a scalar, array
reference or hash reference depending on what's in $bencoded.
Dictionaries are converted in hashes, lists in arrays, scalars in
strings. If $COERCE (see below) is set to a false value then scalars
encoded like integers will be cleanse() before being returned so that a
re-serialization of the structure will give back exactly the same
bencoded string.

Refresh
Refresh
Source Files
Filename Size Changed
Convert-Bencode_XS-0.06.tar.gz 0000008926 8.72 KB
cpanspec.yml 0000000774 774 Bytes
perl-Convert-Bencode_XS.changes 0000000539 539 Bytes
perl-Convert-Bencode_XS.spec 0000002304 2.25 KB
storable-canonical.patch 0000000445 445 Bytes
Latest Revision
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 1156194 from Tina Müller's avatar Tina Müller (tinita) (revision 3)
- Use %autosetup instead of deprecated %patchN
Comments 0
openSUSE Build Service is sponsored by