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

Function GetValuesSafe

cpp/src/arrow/array/data.h:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 /// is not a CPU buffer.
320 template <typename T>
321 inline const T* GetValuesSafe(int i, int64_t absolute_offset) const {
322 if (buffers[i] && buffers[i]->is_cpu()) {
323 return reinterpret_cast<const T*>(buffers[i]->data()) + absolute_offset;
324 } else {
325 return NULLPTR;
326 }
327 }
328
329 /// \brief Access a buffer's data as a typed C pointer
330 ///

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected