Class: Depix::Filler

Inherits:
Field
  • Object
show all
Defined in:
lib/depix/dict.rb

Instance Attribute Summary

Attributes inherited from Field

#desc, #length, #name, #req, #rtype

Instance Method Summary collapse

Methods inherited from Field

#clean, #consume!, emit_char, emit_r32, emit_u16, emit_u32, emit_u8, #explain, #initialize, #validate!

Constructor Details

This class inherits a constructor from Depix::Field

Instance Method Details

#consume(stack) ⇒ Object

Leave the stack alone since we skipped



162
163
164
# File 'lib/depix/dict.rb', line 162

def consume(stack)
  nil
end

#pack(data) ⇒ Object



166
167
168
# File 'lib/depix/dict.rb', line 166

def pack(data)
  raise "This is a filler, it cannot be reconstructed from a value"
end

#patternObject



157
158
159
# File 'lib/depix/dict.rb', line 157

def pattern
  "x#{length ? length.to_i : 1}"
end