lib/avro/io.rb in avro-1.7.2 vs lib/avro/io.rb in avro-1.7.3

- old
+ new

@@ -199,10 +199,10 @@ @writer.write([datum].pack('E')) end # Bytes are encoded as a long followed by that many bytes of data. def write_bytes(datum) - write_long(datum.size) + write_long(datum.bytesize) @writer.write(datum) end # A string is encoded as a long followed by that many bytes of # UTF-8 encoded character data