Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The buffer classes defined in the java.nio package (e.g. IntBuffer, CharBuffer and ByteBuffer) define a variety of wrap() methods. Although these wrap() methods create a new Buffer object, the new Burrer Buffer is backed by the array for which it is created. According to the JavaDoc for these methods:

...