You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jeremy W. Sherman (JIRA)" <ji...@apache.org> on 2015/02/06 16:05:34 UTC
[jira] [Created] (THRIFT-2986) Audit Cocoa library to address
architecture-ignorant byte-swapping
Jeremy W. Sherman created THRIFT-2986:
-----------------------------------------
Summary: Audit Cocoa library to address architecture-ignorant byte-swapping
Key: THRIFT-2986
URL: https://issues.apache.org/jira/browse/THRIFT-2986
Project: Thrift
Issue Type: Task
Components: Cocoa - Library
Affects Versions: 0.9.2
Reporter: Jeremy W. Sherman
This happens at least in TFramedTransport, where -flush manually swaps the length. Except, on a big-endian platform, it just swapped it from network byte order.
For 32-bit values, {{htonl()}} will suffice, though the CFSwap… or NSSwap… families might be a better choice depending on the types in play.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)