BinaryStruct is a class for dealing with binary structured data.