class BinData::BasePrimitive

def value_to_binary_string(val)

Return the string representation that +val+ will take when written.
def value_to_binary_string(val)
  raise NotImplementedError
end