| 81 | class ArrayDataEndianSwapper { |
| 82 | public: |
| 83 | explicit ArrayDataEndianSwapper(const std::shared_ptr<ArrayData>& data, |
| 84 | MemoryPool* pool) |
| 85 | : data_(data), pool_(pool) { |
| 86 | out_ = data->Copy(); |
| 87 | } |
| 88 | |
| 89 | // WARNING: this facility can be called on invalid Array data by the IPC reader. |
| 90 | // Do not rely on the advertised ArrayData length, instead use the physical |