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

String.getBytes with Charset to array or MemorySegment

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None

      Encoding a string to a pre-existing array or MemorySegment can avoid creating intermediate arrays and efficient pack buffers.

      For example, the existing APIs to UTF8 encode a string create one or more byte arrays depending on the encoding and string characters.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: