class Depix::Binary::Fields::BlankingField
For reserved fields and blanking
Public Instance Methods
clean(v)
click to toggle source
# File lib/depix/binary/fields.rb, line 251 def clean(v) nil end
pack(value)
click to toggle source
# File lib/depix/binary/fields.rb, line 259 def pack(value) 0xFF.chr * length end
pattern()
click to toggle source
# File lib/depix/binary/fields.rb, line 247 def pattern "Z#{length}" end
rtype()
click to toggle source
# File lib/depix/binary/fields.rb, line 255 def rtype NilClass end
validate!(value)
click to toggle source
# File lib/depix/binary/fields.rb, line 243 def validate!(value) raise "The value of this field should be nil" unless value.nil? end