blocker.rb

Path: lib/blocker.rb
Last Update: Tue Aug 08 11:57:12 Eastern Standard Time 2006
GroupEncoder ListOfEncoder Blocker FixedArrayEncoder CountedArrayEncoder Encoder SimpleEncoder BitFieldEncoder OneOfEncoder PackedNumberEncoder PackedDateEncoder PackedDateTimeEncoder FixedStringEncoder FixedUTF16StringEncoder BinaryBlocker TopLevel

The purpose of BinaryBlocker is to parse semi-complicated binary files. It can handle all the various data types supported by Array#pack and String#unpack, but the real benefit is with more complicated layouts, that might include files with headers and a variable number of body records followed by a footer. It also supports, packed numeric (BinaryBlocker::PackedNumberEncoder) and date fields (BinaryBlocker::PackedDateEncoder)

Required files

uconv   date   time  

[Validate]