Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过外部附件框架从第三方源(例如硬件)写入的 NSInputStream 读取二进制数据并将其转换为字符串。是否存在我应该关注的字节顺序问题,即我应该询问硬件提供商他们在发送字符串时使用什么字节顺序?
正如人们所说,如果您使用的是 ASCII 或 UTF8,则可能不会。现在的大多数处理器,即使在专用设备中,也使用小端。
在不相关的说明中,如果您通过外部附件进行联网,您可能需要注意网络和主机字节顺序。