Feature parity
Shared buffers
Since each ammer
target has a different runtime with different internal representations of core types such as haxe.io.Bytes
, some targets do not support directly sharing memory between Haxe code and native code.
In the target summaries in the remaining sections, "Shared buffers" is one of the following:
- Yes -
haxe.io.Bytes
can be passed directly (without copying) to the native library as a byte pointer and vice versa. - From Haxe to native only -
haxe.io.Bytes
can be passed directly (without copying) to the native library as a byte pointer but a native byte pointer cannot be used as ahaxe.io.Bytes
value. - No -
haxe.io.Bytes
must always be copied to get a byte pointer.
Shared vectors
In the target summaries in the remaining sections, "Shared vectors" is one of the following:
- Yes -
haxe.ds.Vector
can be passed directly (without copying) to the native library as a pointer and vice versa. - From Haxe to native only -
haxe.ds.Vector
can be passed directly (without copying) to the native library as a pointer but a native pointer cannot be used as ahaxe.ds.Vector
value. - No -
haxe.ds.Vector
must always be copied to get a pointer.