bdec is a set of tools for decoding binary files given a specification written in a flexible XML-based syntax. It supports decoding to XML or Python objects, and can generate quality C decoders and encoders.
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.
More than one child is allowed in a sequenceof. Const correctness was added to compiled C decoders. The start of a Microsoft Word specification was added. More detailed copyright and license information was added. The "&" character is correctly escaped when printing XML. Build warnings when compiling with gcc 4.6 were fixed.
Encoding data structures to binary is now supported. This includes encoding from Python instances, XML, and C structures. Specifications can now be split into multiple files by simply passing all of the specification files to the decode/encode/compile programs.
对于选择他们的代表作品荤孩子不包含数据现在是一个枚举。在此之前,这些项目产生了没有成员的工会,这是无效的C / C + +(与克,造成内存不足的错误+ +)。在“bcompile”脚本是固定的,因为它崩溃。不同的C编译修复了。现在使用的测试,而不是克海合会+ +。一系列的64位值是固定的。
标签:
Minor feature enhancements, Major feature enhancements
The C representation for choice entries whose children don't contain data is now an enum. Previously, these entries generated a union without members, which is invalid C/C++ (and caused memory errors with g++). The "bcompile" script was fixed as it was crashing. Various C compilation fixes were made. The tests now use gcc instead of g++. The range of 64-bit values was fixed.
Floating point, signed integer, and 64-bit values can now be decoded. Range analysis is done on integer types to determine suitable C-types. Conditional entries were added. Constraints on sequence values are possible. Whitespace in XML output and referenencing length and value of the same entry were fixed.