Helpers for MethodHandles.byteArrayViewVarHandle VarHandle
Jaroslav Kameník
jaroslav at kamenik.cz
Mon May 16 13:48:00 UTC 2016
Hi,
what do you thing about adding helper methods for this kind of VarHandle?
It would be nice to have something like
Long.getFrom[LE/BE](byte[] arr, int index) // LE/BE -> endianity
Long.setTo[LE/BE](long val, byte[] arr, int index)
or
Arrays.getLongFrom[LE/BE](byte[] arr, int index)
Arrays.setLongTo[LE/BE](long val, byte[] arr, int index)
Jaroslav
More information about the core-libs-dev
mailing list