MCPcopy Create free account
hub / github.com/apache/arrow / SwapEndianArrayData

Function SwapEndianArrayData

cpp/src/arrow/array/util.cc:287–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285namespace internal {
286
287Result<std::shared_ptr<ArrayData>> SwapEndianArrayData(
288 const std::shared_ptr<ArrayData>& data, MemoryPool* pool) {
289 if (data->offset != 0) {
290 return Status::Invalid("Unsupported data format: data.offset != 0");
291 }
292 ArrayDataEndianSwapper swapper(data, pool);
293 RETURN_NOT_OK(swapper.SwapType(*data->type));
294 return std::move(swapper.out_);
295}
296
297} // namespace internal
298

Callers 5

TESTFunction · 0.85
array_test.ccFile · 0.85
SwapChildrenMethod · 0.85
CreateColumnsMethod · 0.85

Calls 2

SwapTypeMethod · 0.80
InvalidFunction · 0.50

Tested by 2

TESTFunction · 0.68