- Defined in:
BinaryStructure defines a class level DSL for implementing binary strucutures.
The class will then have an ::Unpacker and ::Packer class defined underneath it that can be used to read and write the defined fields from an io.
The DSL itself is fairly simple, fields are defined with a field name, “packing code” (per standard ruby Array#pack) and possibly options.
the :signature option indicates the field is a fixed signature
the :size => <field> option indicates the field is a variable width size field, with the size previously recorded in the specified field
Defined Under Namespace
Modules:, , Classes: , , ,