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.Bytescan be passed directly (without copying) to the native library as a byte pointer and vice versa. - From Haxe to native only -
haxe.io.Bytescan be passed directly (without copying) to the native library as a byte pointer but a native byte pointer cannot be used as ahaxe.io.Bytesvalue. - No -
haxe.io.Bytesmust 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.Vectorcan be passed directly (without copying) to the native library as a pointer and vice versa. - From Haxe to native only -
haxe.ds.Vectorcan be passed directly (without copying) to the native library as a pointer but a native pointer cannot be used as ahaxe.ds.Vectorvalue. - No -
haxe.ds.Vectormust always be copied to get a pointer.