LWJGL/lwjgl3

[Suggestion] MemoryUtil should support primitive arrays for pointers/memAddresses

Speiger opened this issue · 0 comments

Description

o/
I was looking into if LWJGL3 can allocate more then Integer.MAX_VALUE with MemoryUtil due to ByteBuffer being limited to said number.

Turns out it can.

But when i looked if you could insert data into it, that was sadly not possible.
The only thing you can do is write single bytes/primitive types/pointers.

It would be nice if array copy support could be added both for read and write.
Mainly because then you can truly build your data based on pointers and not create the wrapper every single time for fetching/inserting data.

P.s: I know that there are no real pointers in Java/LWJLG3 its just memory addresses.