Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A new type needs to be added to transfer quota values. Since the protocol classes in Kafka already utilize uses ByteBuffers it is logical to use their functionality for serializing doubles. The serialization is basically a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout. The ByteBuffer serializer writes eight bytes containing the given double value, in Big Endian byte order, into this buffer at the current position, and then increments the position by eight.

...