Part 1 Proposal for JDK-8264594
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Jun 10 08:45:07 UTC 2021
On 10/06/2021 00:02, leerho wrote:
> // I think we discussed a while back that the asSlice would also
> require a length.
Minor correction - with the new API, I don't think you need a length.
There is an overload of asSlice which just takes an offset, and
recomputes the length automatically.
So, if you use that, combined with the static method you provide, I
think we should be good?
copyIntoArrayLogical(segment.asSlice(srcOffsetBytes), 0, long[]
dstArray, dstIndexLongs, dstCopyLengthLongs)
Maurizio
More information about the panama-dev
mailing list