global

def to_s

def to_s
  case type
  when :free then "xref #{oid},#{gen} type=free"
  when :in_use then "xref #{oid},#{gen} type=normal pos=#{pos}"
  when :compressed then "xref #{oid},#{gen} type=compressed objstm=#{objstm},0 index=#{pos}"
  end
end