[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: [OpenJDK 2D-Dev] Using VarHandle to read/write primitives
From: Brett Okken <brett.okken.os () gmail ! com>
Date: 2021-01-14 17:09:16
Message-ID: CANBJVOE9mvyuhBunT-6ntrS7AqhbLQponpO5y15M+krXu+6AJw () mail ! gmail ! com
[Download RAW message or body]
In ImageInputStreamImpl and ImageOutputStreamImpl there are methods to
read and write other primitive and primitive array types.
Has there been thought of using byte array view VarHandles[1] to
implement these actions rather than bit twiddling?
[1] - https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/MethodHandles.html#byteArrayViewVarHandle(java.lang.Class,java.nio.ByteOrder)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic