You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Speiger
changed the title
[Suggestion] MemoryUtil should support primitive arrays
[Suggestion] MemoryUtil should support primitive arrays for pointers/memAddresses
Apr 10, 2024
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.
The text was updated successfully, but these errors were encountered: