lib/avro/io.rb in avro-1.11.3 vs lib/avro/io.rb in avro-1.12.0

- old
+ new

@@ -73,19 +73,19 @@ end def read_float # A float is written as 4 bytes. # The float is converted into a 32-bit integer using a method - # equivalent to Java's floatToIntBits and then encoded in + # equivalent to Java's floatToRawIntBits and then encoded in # little-endian format. read_and_unpack(4, 'e') end def read_double # A double is written as 8 bytes. # The double is converted into a 64-bit integer using a method - # equivalent to Java's doubleToLongBits and then encoded in + # equivalent to Java's doubleToRawLongBits and then encoded in # little-endian format. read_and_unpack(8, 'E') end def read_bytes @@ -201,18 +201,18 @@ @writer.write(n.chr) end # A float is written as 4 bytes. # The float is converted into a 32-bit integer using a method - # equivalent to Java's floatToIntBits and then encoded in + # equivalent to Java's floatToRawIntBits and then encoded in # little-endian format. def write_float(datum) @writer.write([datum].pack('e')) end # A double is written as 8 bytes. # The double is converted into a 64-bit integer using a method - # equivalent to Java's doubleToLongBits and then encoded in + # equivalent to Java's doubleToRawLongBits and then encoded in # little-endian format. def write_double(datum) @writer.write([datum].pack('E')) end