LogoopenSUSE Build Service > Projects
Sign Up | Log In

Binary Data Conversion using C Types

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.

Source Files

Filename Size Changed Actions
Convert-Binary-C-0.71.tar.gz 1.48 MB almost 10 years ago Download File
perl-Convert-Binary-C.spec 2.2 KB about 9 years ago Download File

Comments for home:jnaous (0)

Login required, please login or signup in order to comment