code: public static ByteBuf copyInt(int... values) {
          if (values == null || values.length == 0) {
              return EMPTY_BUFFER;
          }
          ByteBuf buffer = buffer(values.length * 4);
          for (int v: values) {
              buffer.writeInt(v);
          }
          return buffer;
      }
docs: Create a big-endian buffer that holds a sequence of the specified 32-bit integers.