stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Add `bit_array.to_string_utf16` and `to_string_utf32`

Open GearsDatapacks opened this issue 6 months ago • 8 comments
trafficstars

Some binary protocols (for example ID3) use UTF-16 encoded text, which right now must be manually converted to a string. It could be useful to have bit_array.to_string_utf16 function to perform this conversion. to_string_utf32 is not something that I've personally needed, but could be useful as well.

Additionally it could be helpful to be able to specify endianness as that is something which varies across standards.

GearsDatapacks avatar May 18 '25 15:05 GearsDatapacks