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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      other

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: