Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6174965

(bf) ByteBuffer would benefit from (optional) absolute bulk put()/get() methods)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • core-libs
    • generic
    • other

      The current java.nio.ByteBuffer API lacks absolute (bulk) put(byte[] ...) and
      gtet(byte[] ...) method signatures.

      While it is possible to workaround this missing functionality it is somewhat
      onerous and is liable to programmer error (since the developer has to play
      with the target ByteBuffer's position and limit pointers).

      The simple addition the appropriate method signatures providing absolute,
      that is parameterising the buffer offset/position for the operation,
      (rather than position field relative) variants of these APIs would significantly enhance the ease of use of this API.
      ###@###.### 10/6/04 16:40 GMT

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: