Binary Data Conversion using C Types

Edit Package perl-Convert-Binary-C

Convert::Binary::C is a preprocessor and parser for C type definitions. It is highly configurable and supports arbitrarily complex data structures. Its object-oriented interface has pack and unpack methods that act as replacements for Perl's pack and unpack and allow to use C types instead of a string representation of the data structure for conversion of binary data from and to Perl's complex data structures.

Actually, what Convert::Binary::C does is not very different from what a C compiler does, just that it doesn't compile the source code into an object file or executable, but only parses the code and allows Perl to use the enumerations, structs, unions and typedefs that have been defined within your C source for binary data conversion, similar to Perl's pack and unpack.

Beyond that, the module offers a lot of convenience methods to retrieve information about the C types that have been parsed.

Refresh
Refresh
Source Files
Filename Size Changed
Convert-Binary-C-0.71.tar.gz 0001557033 1.48 MB
perl-Convert-Binary-C.spec 0000002250 2.2 KB
Latest Revision
Jad Naous's avatar Jad Naous (jnaous) committed (revision 8)
made to work with openSUSE 11.1
Comments 0
openSUSE Build Service is sponsored by