More APIs based on MemorySegment

Glavo zjx001202 at gmail.com
Mon Dec 11 12:15:25 UTC 2023


Sorry, I fell asleep while sending the email, so I sent it to the wrong
mailing list.
It should be sent to panama-dev.

Glavo

On Sun, Dec 10, 2023 at 7:45 PM Glavo <zjx001202 at gmail.com> wrote:

> Hi,
>
> I'm hoping to get the following new API which will help some programs
> escape the 2GiB limit:
>
>
>    1. X-Buffer::get(int, MemorySegment, long, long)
>    2. X-Buffer::put(int, MemorySegment, long, long)
>    3. ReadableByteChannel::read(MemorySegment, long, long)
>    4. WritableByteChannel::write(MemorySegment, long, long)
>    5. InputStream::read(MemorySegment, long, long)
>    6. OutputStream::write(MemorySegment, long, long)
>    7. Checksum::update(MemorySegment, long, long)
>    8. Deflater::setInput(MemorySegment, long, long)
>    9. Deflater::deflate(MemorySegment, long, long)
>    10. Inflater::setInput(MemorySegment, long, long)
>    11. Inflater::inflate(MemorySegment, long, long)
>    12. Files.readAllBytesToNative(Path): MemorySegment
>    13. Files.write(Path, MemorySegment, OpenOpetion...)
>
> Do you have plans to offer them in the future?
>
> Glavo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/valhalla-dev/attachments/20231211/08f0a963/attachment.htm>


More information about the valhalla-dev mailing list