Skip to content

Conversation

@Aidan63
Copy link
Contributor

@Aidan63 Aidan63 commented Dec 24, 2025

I was thinking about using the new cpp marshalling stuff to make a better StringBuf implementation but realised that the string marshalling stuff I added was only really usable in terms of null terminated c string interop, not general string to encoded bytes usage.

So this makes it a bit more flexible. New extern types cpp.encoding.Ascii, cpp.encoding.Utf8, and cpp.encoding.Utf16` have been added to deal with conversions between the various internal string encodings hxcpp uses. Most of this functionality already existed in hxcpp, so it's just making it usable from the haxe side.

hxcpp side : HaxeFoundation/hxcpp#1283

@Aidan63
Copy link
Contributor Author

Aidan63 commented Jan 2, 2026

I think this is good to go now, I've reverted the CI change since all tests passed. Only downside is that the hxcpp latest CI is broken like everything else, but it would be failing anyway since this is one of those annoying merge order ones.

@Simn Simn merged commit 66b868e into HaxeFoundation:development Jan 2, 2026
41 of 49 checks passed
@Aidan63 Aidan63 deleted the cpp_encoding branch January 2, 2026 19:32
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