class Unified2::Constructor::ExtraConstruct

Unified2 Construction

Public Instance Methods

padding_length() click to toggle source

Sometimes the data needs extra padding

# File lib/unified2/constructor/extra_construct.rb, line 33
def padding_length
  if header.event_length > data.num_bytes
    header.event_length - data.num_bytes
  else
    0
  end
end