code: public static Buffer wrap(final int value) {
          final int size = value < 0 ? stringSize(-value) + 1 : stringSize(value);
          final byte[] bytes = new byte[size];
          getBytes(value, size, bytes);
          return new ByteBuffer(bytes);
      }
docs: Converts the integer value into a string and that is what is being
  wrapped in a {@link Buffer}
  
  @param value
  @return