code: public static ByteBuf copyFloat(float... values) {
          if (values == null || values.length == 0) {
              return EMPTY_BUFFER;
          }
          ByteBuf buffer = buffer(values.length * 4);
          for (float v: values) {
              buffer.writeFloat(v);
          }
          return buffer;
      }
docs: Create a new big-endian buffer that holds a sequence of the specified 32-bit floating point numbers.