class Depix::Binary::Fields::Filler
Zero-padded filler, can be used to maintain offsets
Public Instance Methods
consume(stack)
click to toggle source
Leave the stack alone since we skipped
# File lib/depix/binary/fields.rb, line 125 def consume(stack) nil end
pack(data)
click to toggle source
# File lib/depix/binary/fields.rb, line 129 def pack(data) raise "This is a filler, it cannot be reconstructed from a value" end
pattern()
click to toggle source
# File lib/depix/binary/fields.rb, line 120 def pattern "x#{length ? length.to_i : 1}" end