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

Method SwapOffsets

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

Source from the content-addressed store, hash-verified

130
131 template <typename VALUE_TYPE>
132 Status SwapOffsets(int index) {
133 if (data_->buffers[index] == nullptr || data_->buffers[index]->size() == 0) {
134 out_->buffers[index] = data_->buffers[index];
135 return Status::OK();
136 }
137 ARROW_ASSIGN_OR_RAISE(out_->buffers[index],
138 ByteSwapBuffer<VALUE_TYPE>(data_->buffers[index]));
139 return Status::OK();
140 }
141
142 template <typename T>
143 enable_if_t<std::is_base_of<FixedWidthType, T>::value &&

Callers

nothing calls this directly

Calls 3

OKFunction · 0.50
ARROW_ASSIGN_OR_RAISEFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected