-
Enhancement
-
Resolution: Fixed
-
P2
-
None
-
repo-panama
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.
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.
- duplicates
-
JDK-8295736 Add byte and boolean array accessors to MemorySegment
-
- Closed
-