HidApi.Net icon indicating copy to clipboard operation
HidApi.Net copied to clipboard

Read null terminated UTF32 string

Open badcel opened this issue 2 years ago • 0 comments

Currently several UTF32 strings are read from the hid api. To do so the length of the string must be calculated which is done manually in UTF32 class.

Verify if there is a method inside dotnet which can do this automatically. For comparison there is MemoryMarshal.CreateReadOnlySpanFromNullTerminated for UTF8 available.

The same is needed for Unicode (16 bit wide encodings).

badcel avatar Sep 30 '22 06:09 badcel