-class Integer # :nodoc:
- def to_eet_chunks(tag, type = nil)
- fmt = case type
- when :char: "c"
- when :short: "v"
- when :long_long: "q"
- else "V"
- end
-
- data = [self].pack(fmt)
- [Eet::Chunk.new(tag, data)]
- end
-end
-
-class Float # :nodoc:
- def to_eet_chunks(tag, type = nil)
- fmt = case type
- when :double: "%32.32f"
- else "%16.16f"
- end
-
- data = fmt % self
- [Eet::Chunk.new(tag, data + "\0")]
- end
-end
-