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.
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 forByteArray
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.