Skip to content

Implement new array types for HL#1392

Merged
RobDangerous merged 1 commit into
Kode:masterfrom
MoritzBrueckner:hl-array-types
Jan 25, 2022
Merged

Implement new array types for HL#1392
RobDangerous merged 1 commit into
Kode:masterfrom
MoritzBrueckner:hl-array-types

Conversation

@MoritzBrueckner
Copy link
Copy Markdown
Contributor

This PR implements the new array types in HL and fixes compilation.

I'm not particularly happy with the now missing setData() function that existed in the HL backend. I had to remove/replace it because the typed arrays no longer have their own Haxe sources in the backend, should I reimplement this function for ByteArray with the byte length instead of the number of typed elements as a parameter?

Also, does anyone know if it is possible in HL to set a finalizer like you can do it for hxcpp? This could make calls like (cast myTypedArray: ByteArray).free() obsolete.

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

Successfully merging this pull request may close these issues.

2 participants