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

Add get/set-AtIndex methods for byte, boolean

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • None
    • repo-panama
    • core-libs

      We currently have no indexed getters and setters on MemorySegment for byte and boolean.

      This decision was made in the past because both are just one byte in size, so no scaling by the size of the layout takes place, and they are functionally equivalent to the non-indexed getters and setters.

      However, it was brought up recently that for consistency's sake, and code readability, it would be nice to have indexed accessors for byte and boolean after all.

            pminborg Per-Ake Minborg
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: