From: Markus Fischer Date: 2009-06-08T02:15:05+09:00 Subject: binaryparse: length in bytes of block definition? Hi, is there a way to derive the size in bytes of a custom BinaryBlocker::Blocker definition? class Foo < BinaryBlocker::Blocker has_one :offset, :int32 has_one :length, :int32 end Deriving the length would yield 8. I've been using bit-struct for similar tasks, but it doesn't support nesting class definition. However, bit-struct provides a round_byte_length() for that purpose. Is there an equivalent for it in binaryparse? thanks, - Markus