class BinData::String

def trim_padding(str)

def trim_padding(str)
  str.sub(/#{eval_parameter(:pad_byte)}*$/, "")
end