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

Arrays from native memory #41

Open
Neiko2002 opened this issue Dec 8, 2016 · 0 comments
Open

Arrays from native memory #41

Neiko2002 opened this issue Dec 8, 2016 · 0 comments
Assignees
Milestone

Comments

@Neiko2002
Copy link
Member

Neiko2002 commented Dec 8, 2016

If we know the correct layout (header, padding and content structure) of an primitive type array we can create the same layout in native memory and create an java object out of it using the code below.
https://gist.github.com/Neiko2002/be6301482f5fcdeb003337bb1714972e

A RecordSequence for primitive types could allocate additional bytes upfront and fill them with the correct header of an array of the same primitive type.

@Neiko2002 Neiko2002 added this to the Release 1.1 milestone Dec 8, 2016
@Neiko2002 Neiko2002 self-assigned this Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant