code: public static ByteBuf copyDouble(double value) {
          ByteBuf buf = buffer(8);
          buf.writeDouble(value);
          return buf;
      }
docs: Creates a new 8-byte big-endian buffer that holds the specified 64-bit floating point number.