Is there a content issue reading string data from NSInputStream

I read binary data from NSInputStream, which is written from a third-party source (e.g., hardware) through an external accessory infrastructure and converts it to a string. Is there a content issue that I have to worry about, i.e. Should I ask the hardware vendor what is the point they use when sending their line?

+5
source share
1 answer

As people said, maybe not if you are using ASCII or UTF8. Most processors nowadays, even in specialized devices, use a little endian.

, , , , .

0

All Articles