code: public Packet putInt(int i, ByteOrder order) {
          var buffer = HEAP_BUFFER_POOL.take(Integer.BYTES);
          var array = buffer.putInt(order == ByteOrder.LITTLE_ENDIAN ? Integer.reverseBytes(i) : i).array();
          
          try {
              return enqueue(Arrays.copyOfRange(array, 0, Integer.BYTES));
          } finally {
              HEAP_BUFFER_POOL.give(buffer);
          }
      }
docs: Writes a single {@code int} with the specified {@link ByteOrder} to this {@link Packet}'s payload.
  
  @param i     An {@code int}.
  @param order The internal byte order of the {@code int}.
  @return The {@link Packet} to allow for chained writes.