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

Function CopyStridedBytewise

python/pyarrow/src/arrow/python/numpy_to_arrow.cc:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390template <typename T>
391void CopyStridedBytewise(int8_t* input_data, int64_t length, int64_t stride,
392 T* output_data) {
393 // Passing input_data as non-const is a concession to PyObject*
394 for (int64_t i = 0; i < length; ++i) {
395 memcpy(output_data + i, input_data, sizeof(T));
396 input_data += stride;
397 }
398}
399
400template <typename T>
401void CopyStridedNatural(T* input_data, int64_t length, int64_t stride, T* output_data) {

Callers 1

VisitMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected