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

Function SwapEndianArrayData

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

Source from the content-addressed store, hash-verified

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

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