Closed mikepapadim closed 2 months ago
Thanks Michali. Let's add also unit tests.
Done, I added the unit-tests in a seperate class from the rest of the API constructors in case we want to deprecate/remote in the near future in favour of the Memory segment utilities. So, we can easilty remove it.
Description
Currently, we support building TornadoNative arrays directly from primitive arrays and MemorySegments, but we were missing support for Java NIO ByteBuffers.
Example usage:
Backend/s tested
Mark the backends affected by this PR.
OS tested
Mark the OS where this PR is tested.
Did you check on FPGAs?
If it is applicable, check your changes on FPGAs.
How to test the new patch?