Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Speiger opened this issue Apr 10, 2024 · 0 comments

Comments

@Speiger
Copy link

Speiger commented 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.

@Speiger Speiger changed the title [Suggestion] MemoryUtil should support primitive arrays [Suggestion] MemoryUtil should support primitive arrays for pointers/memAddresses Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant