examples/gzip.rb in bindata-0.7.0 vs examples/gzip.rb in bindata-0.8.0

- old
+ new

@@ -9,14 +9,14 @@ # Known compression methods DEFLATE = 8 class Extra < BinData::Struct uint16le :len, :length => lambda { data.length } - string :data, :initial_length => :len + string :data, :read_length => :len end class Header < BinData::Struct - uint16le :id, :value => 0x8b1f, :check_value => 0x8b1f + uint16le :ident, :value => 0x8b1f, :check_value => 0x8b1f uint8 :compression_method, :initial_value => DEFLATE uint8 :flags, :value => :calculate_flags_val, # Upper 3 bits must be zero :check_value => lambda { (value & 0xe0) == 0 } uint32le :mtime